Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: zenta4u

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-28 13:10:55

#include <iostream>
    #include <cmath>
using namespace std;

int main() {
    int x,a;
    cin>>x;
    if(x==0){
    	cout<<"0";
	}
	else{
		cout<<x*(1+3*x);
	}
}