結果
問題 | No.815 Are you a traveller ? |
ユーザー |
![]() |
提出日時 | 2019-04-19 21:23:02 |
言語 | C++17 (gcc 11.2.0 + boost 1.78.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 1,793 ms |
使用メモリ | 5,156 KB |
最終ジャッジ日時 | 2022-11-22 05:13:45 |
合計ジャッジ時間 | 2,638 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,908 KB |
testcase_01 | AC | 2 ms
5,156 KB |
testcase_02 | AC | 1 ms
4,900 KB |
testcase_03 | AC | 1 ms
4,900 KB |
testcase_04 | AC | 2 ms
4,904 KB |
testcase_05 | AC | 2 ms
4,900 KB |
testcase_06 | AC | 1 ms
4,900 KB |
ソースコード
#include <bits/stdc++.h> #define ll long long #define INIT std::ios::sync_with_stdio(false);std::cin.tie(0); #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) #define dump(x) cerr << #x << " = " << (x) << endl; #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; using namespace std; int main() { INIT; int n; cin >> n; cout << n/2 + (n%2 != 0) << endl; return 0; }