Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: kkxkkx001
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-01 09:42:10
#include <iostream>
using namespace std;
int main()
{
int t;
cin >> t;
int h[200];
h[0] = 0;
h[1] = 4;
int count = 10;
for (int i=2; i<=200; i++)
{
h[i] = h[i-1]+count;
count+=6;
}
cout << h[t];
}