結果

問題 No.480 合計
ユーザー yoshnary
提出日時 2019-04-01 22:44:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 388 bytes
コンパイル時間 821 ms
コンパイル使用メモリ 98,372 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 03:40:05
合計ジャッジ時間 1,591 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <functional>
#include <iomanip>
#include <bitset>
#include <cassert>
using namespace std;
typedef long long ll;

void b() {
	int n; cin >> n;
	cout << n*(n + 1) / 2 << endl;
}
int main() {
    b();
    return 0;
}
0