abc172_a - Calc
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
int main(void)
{
int a0, a1;
cin >> a0;
a1 = a0 * a0;
cout << a0 * (1 + a0 + a1) << endl;
return 0;
}
Click to show code.
using namespace std;
int main(void)
{
int a0, a1;
cin >> a0;
a1 = a0 * a0;
cout << a0 * (1 + a0 + a1) << endl;
return 0;
}