提交时间:2022-07-12 09:04:52
运行 ID: 45957
#include<iostream> using namespace std; int main(){ int a,counter; cin>>a; for(int i=1;i<=a;i++){ counter+=i*i; } cout<<counter-1; return 0; }