結果

問題 No.480 合計
ユーザー mnm
提出日時 2022-05-20 19:21:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 302 bytes
コンパイル時間 581 ms
コンパイル使用メモリ 68,400 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-20 04:29:51
合計ジャッジ時間 1,299 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>

#define rep(i,n) for(i=0; i<n; ++i)
#define in(a) cin >> a
#define out(a,b) cout << a << b
using namespace std;

int main(void){
    int i, n, sum = 0;
    in(n);
    rep(i, n) sum += i+1;
    out(sum, endl);
    return 0;
}
0