結果

問題 No.480 合計
ユーザー tansunogon
提出日時 2017-05-05 20:48:45
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 484 ms
コンパイル使用メモリ 55,160 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 09:23:39
合計ジャッジ時間 1,227 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

struct iostream_init_struct
{ 
	iostream_init_struct()
	{
		std::cin.tie(0);
		std::cin.sync_with_stdio(false);
	}
} iostream_init;

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