Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101062 何睿函 13分苹果 C++ Accepted 1 MS 268 KB 157 2024-12-14 13:22:45

Tests(10/10):


Code:

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