Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: cheetah
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-06 19:20:28
#include<bits/stdc++.h>
using namespace std;
int main () {
ios_base::sync_with_stdio(0);
cin.tie(0);
int t, h = 4;
cin >> t;
if (t == 0) {
cout << 0;
}
else {
cout << t * ((t - 1) * 3 + 4);
}
return 0;
}