結果

問題 No.1187 皇帝ペンギン
ユーザー ああいいああいい
提出日時 2021-12-28 23:22:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 376 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,728 KB
平均クエリ数 18.48
最終ジャッジ日時 2024-04-10 15:42:38
合計ジャッジ時間 6,483 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
27,080 KB
testcase_01 AC 42 ms
27,208 KB
testcase_02 AC 41 ms
27,336 KB
testcase_03 RE -
testcase_04 AC 42 ms
27,592 KB
testcase_05 AC 45 ms
27,336 KB
testcase_06 AC 49 ms
27,336 KB
testcase_07 AC 52 ms
26,952 KB
testcase_08 AC 51 ms
27,080 KB
testcase_09 AC 48 ms
27,592 KB
testcase_10 AC 45 ms
27,216 KB
testcase_11 RE -
testcase_12 AC 42 ms
27,208 KB
testcase_13 AC 42 ms
27,336 KB
testcase_14 AC 41 ms
27,208 KB
testcase_15 AC 45 ms
27,080 KB
testcase_16 AC 41 ms
27,592 KB
testcase_17 AC 43 ms
27,208 KB
testcase_18 AC 42 ms
27,464 KB
testcase_19 RE -
testcase_20 AC 42 ms
27,208 KB
testcase_21 RE -
testcase_22 AC 43 ms
27,472 KB
testcase_23 RE -
testcase_24 AC 42 ms
27,088 KB
testcase_25 AC 43 ms
27,088 KB
testcase_26 AC 41 ms
27,088 KB
testcase_27 AC 41 ms
27,088 KB
testcase_28 AC 42 ms
27,344 KB
testcase_29 RE -
testcase_30 AC 41 ms
27,088 KB
testcase_31 AC 43 ms
26,960 KB
testcase_32 AC 42 ms
27,464 KB
testcase_33 AC 43 ms
27,088 KB
testcase_34 AC 42 ms
27,472 KB
testcase_35 AC 42 ms
27,216 KB
testcase_36 RE -
testcase_37 RE -
testcase_38 AC 42 ms
26,992 KB
testcase_39 RE -
testcase_40 RE -
testcase_41 AC 45 ms
26,712 KB
testcase_42 RE -
testcase_43 AC 42 ms
27,352 KB
testcase_44 RE -
testcase_45 AC 42 ms
27,096 KB
testcase_46 AC 42 ms
27,608 KB
testcase_47 AC 43 ms
27,080 KB
testcase_48 RE -
testcase_49 RE -
testcase_50 RE -
testcase_51 AC 43 ms
27,080 KB
testcase_52 AC 42 ms
27,088 KB
testcase_53 AC 41 ms
27,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

end = 10 ** 3
start = 0
while end - start > 1:
    mid = (start + end) // 2
    print('?',mid)
    ans = input()
    if ans == 'safe':
        start = mid
    else:
        print('?',mid-1)
        ans = input()
        if ans == 'safe':
            start = mid-1
            if end - start == 2:
                end -= 1
        else:
            end = mid-1
print('!',start)
0