Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: simon
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2026-05-09 11:48:56
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;cin >> n;
int ans =4;
int ds =0;
for(int i =0;i<n;i++)
{
ds += ans;
ans += 6;
}
cout << ds;
}