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

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++){ s+=j; j+=i; } return s; } int main(){ cin>>n; cout<<h(n); }


测评信息: