結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2020-01-18 17:11:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 281 bytes |
| コンパイル時間 | 2,155 ms |
| コンパイル使用メモリ | 192,360 KB |
| 最終ジャッジ日時 | 2025-01-08 20:04:14 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define DEBUG
int main()
{
int n;
cin >> n;
cout << (n+1)*n/2 << endl;
return 0;
}
Konton7