結果

問題 No.815 Are you a traveller ?
ユーザー 3_3_nk3_3_nk
提出日時 2019-04-19 21:24:21
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 781 bytes
コンパイル時間 764 ms
コンパイル使用メモリ 88,928 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-23 22:58:12
合計ジャッジ時間 1,414 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <string>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <climits>
#include <cfloat>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <array>
#define REP(i, x) for(int (i) = 0; (i) < (x); (i) ++)
#define PREP(i, s, x) for(int (i) = (s); (i) < (x); (i) ++) 
#define MREP(i, s, x) for(int (i) = (s); (i) >= (x); (i) --)
#define IREP(i) for(int (i) = 0; ; (i) ++)
#define MOD 1000000007
#define PI (acos(-1))
// long long型の最大値:LLONG_MAX
// long long型の最小値:LLONG_MIN
// int型の最大値:INT_MAX
// int型の最小値:INT_MIN
// 絶対値:abs(n)
using namespace std;

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