結果

問題 No.480 合計
ユーザー sakaki_tohru
提出日時 2019-08-16 20:25:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 691 ms
コンパイル使用メモリ 71,780 KB
最終ジャッジ日時 2025-01-07 12:08:38
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main(){
	int n; cin >> n;
	cout << n * (n + 1) / 2 << endl;

	return 0;
}
0