Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: usahana

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-10 09:16:45

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



int main() {
    int time, height=0,plus=4;
    cin >> time;

    for(int i = 0;i<time;i++){
        height+=plus;
        plus+=6;
        
    }
    cout<< height;
}