Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: scxtti3h

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-12-10 19:55:28

/*
    AUTHOR : Scxtti3h
    Task   : c1_bkk67_3
    Date   : 10/12/2568
*/

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

int main(){
    int x,y=4,ans=0;
    cin.tie(nullptr)->sync_with_stdio(false);
    cin >> x;
    for(int i=0;i<x;i++){
        ans=ans+y;
        y=y+6;
    }
    cout << ans;
    return 0;
}