結果

問題 No.480 合計
ユーザー do2715puyo
提出日時 2017-12-23 23:05:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 474 bytes
コンパイル時間 669 ms
コンパイル使用メモリ 77,000 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-17 16:51:56
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cassert>
#include<vector>
#include<fstream>
#include<string>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<queue>
#include<map>

using namespace std;
#define REP(i,m,n) for(long long i=m;i<n;++i)
#define INF 10000000000000000
#define MOD 1000000007
#define ll long long
#define mp make_pair
#define all(v) v.begin(),v.end()

int main() {
	int n;
	cin >> n;
	n = n*(n + 1) / 2;
	printf("%d\n", n);
	return 0;
}
0