Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: eippy
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-11 09:52:48
#include<iostream>
using namespace std;
int main(){
int t,h=0,x;
cin >> t;
if (t == 0){
cout << 0;
return 0;
}
x = 4;
for (int i=1; i<=t; i++){
h += x;
x += 6;
}
cout << h;
return 0;
}