Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: denze
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-12 21:57:53
#include <bits/stdc++.h>
using namespace std;
int ans[200 + 10];
int main()
{
int t;
scanf("%d", &t);
int v = 4, a = 6;
for (int i = 1; i <= t; i++)
{
ans[i] = ans[i - 1] + v;
v += a;
}
printf("%d\n", ans[t]);
}
/*
12
*/