Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Buslnwzuz

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-10 14:55:08

#include <bits/stdc++.h>
using namespace  std;
int re(int n){
    if(n>0){
        return re(n-1)+6*n-2;
    }
    else return 0;
}
int main(){
    int n;
    cin >> n;
    cout << re(n);
    return 0;
}