Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
347609 黄浙峰老师 【C6-5】数数小木块 C++ 通过 100 1 MS 244 KB 187 2025-09-13 14:46:37

Tests(3/3):


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


测评信息: