Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: randomguy

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-10 14:25:28

#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <numeric>
#include <set>
#include <algorithm>
#define io() do { ios::sync_with_stdio(false); cin.tie(nullptr); } while(0)
using namespace std;



int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    cin >> n;
    int s=0;
    while(n){
        s+=4+6*(n-1);
        n--;
    }
    cout << s;
}