結果
問題 | No.815 Are you a traveller ? |
ユーザー |
![]() |
提出日時 | 2019-04-19 21:23:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 452 bytes |
コンパイル時間 | 2,105 ms |
コンパイル使用メモリ | 192,932 KB |
最終ジャッジ日時 | 2025-01-07 02:36:44 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#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; }