Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Newton4566

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-09-24 18:36:38

#include <iostream>
using namespace std;

int main () {
    int t;
    cin >> t;

    int height = 0;

    for (int i = 0; i < t; i++) {
        height += 4 + (i * 6);
    }

    cout << height << endl;
    
    return 0;
}