結果
問題 | No.815 Are you a traveller ? |
ユーザー |
![]() |
提出日時 | 2019-04-19 21:28:56 |
言語 | C++14 (gcc 11.2.0 + boost 1.78.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,279 bytes |
コンパイル時間 | 1,339 ms |
使用メモリ | 3,572 KB |
最終ジャッジ日時 | 2022-11-22 05:52:12 |
合計ジャッジ時間 | 2,267 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
3,564 KB |
testcase_01 | AC | 1 ms
3,572 KB |
testcase_02 | AC | 1 ms
3,380 KB |
testcase_03 | AC | 1 ms
3,396 KB |
testcase_04 | AC | 2 ms
3,348 KB |
testcase_05 | AC | 1 ms
3,496 KB |
testcase_06 | AC | 1 ms
3,348 KB |
ソースコード
#include <bits/stdc++.h> #define rep(i,a,b) for(int i=(int)(a);i<(int)(b);++i) #define rrep(i,a,b) for(int i=(int)(a);i>=(int)(b);--i) #define fore(i,a) for(auto &i:a) #define all(a) (a).begin(),(a).end() using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); } using ll = long long; constexpr int inf = INT_MAX / 2; constexpr ll infl = 1LL << 60; template<class T>void YES(T condition){ if(condition) cout << "YES" << endl; else cout << "NO" << endl; } template<class T>void Yes(T condition){ if(condition) cout << "Yes" << endl; else cout << "No" << endl; } template<class T>void POSS(T condition){ if(condition) cout << "POSSIBLE" << endl; else cout << "IMPOSSIBLE" << endl; } template<class T>void Poss(T condition){ if(condition) cout << "Possible" << endl; else cout << "Impossible" << endl; } template<class T>bool chmax(T &a, const T &b) { if (a<b) { a = b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a = b; return 1; } return 0; } template<class T>T gcd(T a, T b){ if(a && b){ return gcd(min(a, b), max(a, b) % min(a, b)); }else{ return a; }} template<class T>T lcm(T a, T b){ return a / gcd(a, b) * b; } void _main() { int N; cin >> N; int ans = (N+1)/2; cout << ans << endl; }