Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: punzacp555
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2026-09-24 22:17:47
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
int n;
cin >> n;
int inc = 4, ans = 0;
for(int i=0; i<n; i++) {
ans += inc;
inc += 6;
}
cout << ans;
return 0;
}