Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
29527 袁振宁 堆砖 C++ 通过 100 1 MS 696 KB 171 2022-07-20 18:49:12

Tests(3/3):


#include <bits/stdc++.h> using namespace std; int main() { int n,i,s=0,k=0; cin>>n; for(i=1;i<=n;i++) { s=s+i; k=k+s;} cout<<k<<endl; return 0; }


测评信息: