Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: jackpapho

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-30 13:30:50

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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    int n;
    cin >> n;
    n+=1;
    cout << 4*(n-1) + 3*(n-1)*(n-2);
    return 0;
}