Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: bestisyis...programming

Problemset: นักบินอวกาศ

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-07 20:41:29

#include <iostream>
using namespace std;
int main(){
	int time;
	cin >> time;
	int height;
	if(time==0) cout << '0';
	else{
		height = 4+10*(time-1)+3*(time-1)*(time-2);
		cout << height;
	}
	return 0;
}