Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: limsan20122
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2025-09-29 12:46:00
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int x=0;
int y=0;
int z=4;
cin >> x;
if(x==0){
cout << "0";
}else{
for(int i=0;i<x;i++){
y+=z;
z+=6;
}
cout << y;
}
return 0;
}