Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: pressoboi

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-09-30 15:54:54

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

int main(){
    int t;
    cin >> t;
    int bef=0;
    int turn=4;
    for(int i=1;i<=t;i++){
        turn = 4 + (i-1)*6;
        bef = bef + turn;
    }
    cout << bef;
    return 0;
}