Submission

Status:

[PP-SSSSSSS]

Subtask/Task Score:

{0/100}

Score: 0

User: sakurajima

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-22 21:42:13

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int time;
    cin >> time;

    if (time == 1) {
        cout << 4;
        return 0;
    }

    int height = ((time) / 2) * (8 + (time - 1) * 6);
    cout << height;

}