Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
12329 陈颖钧 数列求和 C++ 解答错误 0 1 MS 256 KB 191 2025-07-09 17:25:08

Tests(0/1):


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


测评信息: