結果
問題 | No.815 Are you a traveller ? |
ユーザー | treeone |
提出日時 | 2019-04-19 21:24:16 |
言語 | C++17 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 4,477 ms |
コンパイル使用メモリ | 199,484 KB |
実行使用メモリ | 4,372 KB |
最終ジャッジ日時 | 2023-10-23 22:57:06 |
合計ジャッジ時間 | 5,933 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | AC | 2 ms
4,372 KB |
testcase_02 | AC | 2 ms
4,372 KB |
testcase_03 | AC | 2 ms
4,372 KB |
testcase_04 | AC | 2 ms
4,372 KB |
testcase_05 | AC | 2 ms
4,372 KB |
testcase_06 | AC | 2 ms
4,372 KB |
ソースコード
#include <bits/stdc++.h> #define rep(i, a, n) for(int i = a; i < n; i++) #define int long long using namespace std; typedef pair<int, int> P; const int mod = 1000000007; const int INF = 1e18; signed main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; cout << (n + 1) / 2 << endl; }