結果
問題 | No.815 Are you a traveller ? |
ユーザー |
![]() |
提出日時 | 2019-04-19 21:24:21 |
言語 | C++14 (gcc 12.2.0 + boost 1.81.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 781 bytes |
コンパイル時間 | 618 ms |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2023-03-31 10:58:00 |
合計ジャッジ時間 | 1,481 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,200 KB |
testcase_01 | AC | 1 ms
6,196 KB |
testcase_02 | AC | 1 ms
6,184 KB |
testcase_03 | AC | 1 ms
6,272 KB |
testcase_04 | AC | 1 ms
6,248 KB |
testcase_05 | AC | 2 ms
6,268 KB |
testcase_06 | AC | 1 ms
6,176 KB |
ソースコード
#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; }