Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37329 IKUN(ZHC) 求1+2+3+... C++ 通过 0 MS 252 KB 122 2024-01-20 10:55:06

Tests(1/1):


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


测评信息: