結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
nsy_fuya
|
| 提出日時 | 2020-03-10 21:32:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 634 ms |
| コンパイル使用メモリ | 69,760 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 23:39:28 |
| 合計ジャッジ時間 | 1,429 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
typedef long long llint;
llint n;
void solve(){
llint ans=0;
cin >> n;
for(int i=1;i<=n;i++)ans+=i;
cout << ans << endl;
}
int main(int argc, char *argv[]) {
solve();
return 0;
}
nsy_fuya