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