結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
minato
|
| 提出日時 | 2019-11-26 20:17:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 1,698 ms |
| コンパイル使用メモリ | 164,792 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 00:54:57 |
| 合計ジャッジ時間 | 2,567 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI = acos(-1);
const ll MOD = 1000000007;
int f(int x) {
if (x == 0) return 0;
return x + f(x-1);
}
int main() {
int N; cin >> N;
cout << f(N) << endl;
}
minato