Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: lupniexx

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-25 17:22:29

#include<bits/stdc++.h>
using namespace std;
int main(){
    int t;
    cin >> t;
    if(t==0){cout<<"0";}
    else if(t>0){
        int v;
        v=4+3*(t-1);
        cout << v*t;
    }
}