Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Quinruj
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-17 20:15:35
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;cin>>n;
ll ans = 0;
for (ll i = 0,a = 4;i<n;i++,a+=6){
ans += a;
}
cout << ans;
}