結果
問題 | No.815 Are you a traveller ? |
ユーザー |
![]() |
提出日時 | 2019-04-19 21:20:51 |
言語 | C++11 (gcc 8.5.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 550 bytes |
コンパイル時間 | 1,680 ms |
実行使用メモリ | 6,284 KB |
最終ジャッジ日時 | 2023-03-31 10:29:00 |
合計ジャッジ時間 | 1,930 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,252 KB |
testcase_01 | AC | 1 ms
6,168 KB |
testcase_02 | AC | 1 ms
6,208 KB |
testcase_03 | AC | 2 ms
6,212 KB |
testcase_04 | AC | 1 ms
6,248 KB |
testcase_05 | AC | 1 ms
6,284 KB |
testcase_06 | AC | 2 ms
6,256 KB |
ソースコード
#include "bits/stdc++.h" using namespace std; using ll = long long; using ld = long double; using P = pair<int, int>; using vi = vector<int>; using vl = vector<ll>; ld EPS = 1e-12; int INF = numeric_limits<int>::max() / 2; ll LINF = numeric_limits<ll>::max() / 2; int MOD = 1e9 + 7; #define rep(i,n) for(int i = 0; i < n; i++) #define all(obj) (obj).begin(), (obj).end() #define debug(x) cerr << #x << ": " << x << '\n' int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; cout << (n+1)/2 << endl; return 0; }