Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: blaboo123

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-08-30 17:12:24

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

int cal(int x) ;

int main() {
    ios_base::sync_with_stdio(0) ;
    cin.tie(0) ;
    int n ;
    cin >> n ;
    cout << cal(n) << "\n" ;
    return 0 ;
}

int cal(int x){
    return (3 * x * x) + x ;
}