Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
状态
76364
Run ID
作者
问题
语言
测评结果
Time
Memory
代码长度
提交时间
76364
张之隽
13分苹果
C++
Accepted
1 MS
276 KB
111
2024-06-02 13:54:16
Tests(10/10):
Code:
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<(1+n)*n/2; return 0; }