結果

問題 No.815 Are you a traveller ?
ユーザー kinderkinder
提出日時 2019-09-19 21:06:06
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 2,756 bytes
コンパイル時間 1,071 ms
コンパイル使用メモリ 143,180 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-27 10:28:08
合計ジャッジ時間 2,045 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,384 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/***
                                           , -‐        \-、
                     ∠ -‐: :  ̄ ̄ : : : 、    ヽ\
                   /: : : : : : : : : : : : : : : : \   丶\
                   ' : : : : : : 、: : : : : : :;ヘ: ; : : : \   i   \     
                  /: : : : : : : 、ハ: : : :/, ィ: / : : : : ヽ !    >
                 ' : : : : : : { / \、/    !∧: : : : : : 丶, ィ/
                レヘ: : : : : 、l        ___ ヽ: : : : : : |,ィ
                  \: : :∧ ==      ̄,,,,,| 、 : ィ: l/
                    ヽィ: :|'''  `       |: : :l ノ:Vl
                        |: :l    、___,    |: : :!: : : :|
             , ⌒ヽ     |: :ヽ、          | : :i: : : : !
            ,(     )  _  |: : :|: : :‐-   イ   l: : l: :i: : :l
           f      彡'´ ,: : : ハ : :_i: :ノ      ! : |__| : : :、
           丶 _ -‐'   i: : :/ _〉ヘ:f‐ 、___,ィ: : l´ フ ヽ丶
                    l: : :!イ/  ||   /イ: : :/ 〃  l: :.
                     |: : :l∥  ||  〃  l: : / 〃   , : : :、
                    ィ _y   || 〃   | //   ィ、 : : :丶
                  //::::::::::ヽ  l|〃__{三ニ}    / | 丶 : : : 、
                 / _/:::::::r'⌒ヽ}  /::::{ニン    イ : |   、: : :i
                 f ´ 、:::::::ヽ   ` ┴- |_f_    /: |: : |  i: : : :!
                 |   ヽ__>、          イ: ∥: :|  |: : : |
                 ! _  -┬‐\         //: /l: : :l  l: : : :| 
***/

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    ll a; cin >> a;
    cout << (a + 2 - 1) / 2 << endl;
}
0