Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101026 黄思翔 13分苹果 C++ Accepted 1 MS 272 KB 186 2024-12-14 12:42:27

Tests(10/10):


Code:

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