Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: uraniumconsumer

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-10-25 13:45:53

#include <bits/stdc++.h>
using namespace std;

int main(){
    int time;
    cin >> time;
    int result = 0;
    if(time >= 1){
        result = 4;
        for(int i = 1; i < time; i++){
            result += (4 + 6 * (time - i));
        } 
    }
    cout << result;
}