結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-24 03:09:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 241 bytes |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 59,520 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-03 08:28:12 |
| 合計ジャッジ時間 | 1,460 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#define rep(i, n) for(int i=0; i<(int)(n); i++)
using namespace std;
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
int in;
int ans = 0;
cin >> in;
rep(i, in+1) {
ans=ans+i;
}
cout << ans;
return 0;
}