結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-07 15:10:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 1,709 ms |
| コンパイル使用メモリ | 165,084 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 10:46:34 |
| 合計ジャッジ時間 | 2,405 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#define forn(i,a,b) for(int i=a; i<=b; i++)
using namespace std;
void solve(){
int n;
cin>>n;
cout<<n*(n+1)/2<<endl;
}
int main(){
ios::sync_with_stdio(0); cin.tie(0);
int t=1;
// cin>>t;
while(t--){
solve();
}
}