Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: pottersk146
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-09 19:48:38
#include <iostream>
#include <algorithm>
using namespace std;
using ll=long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll t;
cin>>t;
ll cnt=0;
for (int i=1; i<=t; i++){
cnt+=6*i-2;
}
cout<<cnt;
return 0;
}