Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129004 田祥江 13分苹果 C++ Accepted 3 MS 272 KB 171 2025-08-21 15:17:40

Tests(10/10):


Code:

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