#include<iostream> using namespace std; int main(){ int k,i,c=1,d=0; cin>>k; for (i=1;i<=k;i++){ c=i*i*i; d=d+c; } cout<<d; }
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 羽润编程 universal account