結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
あるふぁ
|
| 提出日時 | 2020-01-13 17:10:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 403 bytes |
| コンパイル時間 | 2,958 ms |
| コンパイル使用メモリ | 93,916 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-18 00:37:40 |
| 合計ジャッジ時間 | 1,815 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <vector>
#include <set>
#include <queue>
#include <unordered_map>
#include <map>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using lint = long long;
using namespace std;
const int MOD = 1000000007;
int main() {
int N;
cin >> N;
cout << (N + 1) * N / 2 << endl;
return 0;
}
あるふぁ