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

Tests(0/1):


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


测评信息: