Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: solomon
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-22 12:31:16
#include <bits/stdc++.h>
using namespace std;
int main(){
int t,h = 0;
cin >> t;
int p = 4;
for(int i = 1;i<=t;i++){
h += p;
p += 6;
}cout << h;
}