eolymp
bolt
Try our new interface for solving problems
Problems

Льодові кулі

published at 2/8/24, 6:37:03 pm

include <bits/stdc++.h>

define ll long long int

define ld long double

using namespace std; int main(){

ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll n, m = 2, ans = 0;
cin>>n;
while(n--){
    ll k = m*m*m;
    ans+=k;
    m+=2;
}
cout<<ans;

} //TECHNOBLADE NEVER DIES