Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: anwaplayz
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.006 second
Submitted On: 2026-09-24 13:45:49
#include <iostream>
using namespace std;
int main(){
int time,temp=4,height=0;
cin>>time;
for(int i=0;i<time;i++){
height=height+temp;
temp=temp+6;
}
cout<<height;
}