Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: boygunner
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.002 second
Submitted On: 2026-09-30 21:47:56
#include<bits/stdc++.h>
using namespace std;
int calh(int t){
int h;
h = 4+10*(t-1)+3*(t-1)*(t-2);
return h;
}
int main(){
int t;
cin>>t;
cout<<calh(t);
}