Submission

Status:

[P-SSSSSSSS]

Subtask/Task Score:

{0/100}

Score: 0

User: sakurajima

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-22 21:40:51

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

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

    int time;
    cin >> time;

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

}