Submission
Status:
[-SSSSSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: melbou
Problemset: นักบินอวกาศ
Language: cpp
Time: 0.002 second
Submitted On: 2025-12-10 19:54:34
#include <bits/stdc++.h>
using namespace std;
int main(){
int t,height;
int base = 4;
cin>>t;
if(t == 0)
{
cout<<'0'<<endl;
}else if(t == 1)
{
cout<<'4'<<endl;
}else
{
for(int i=1;i<t;i++)
{
base = base + 3;
}
height = t * base;
}
cout<<height;
return 0;
}