結果

問題 No.1187 皇帝ペンギン
ユーザー kyo1kyo1
提出日時 2021-01-26 18:33:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 10,408 KB
実行使用メモリ 24,348 KB
平均クエリ数 24.98
最終ジャッジ日時 2023-09-24 09:43:26
合計ジャッジ時間 7,441 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 37 ms
23,792 KB
testcase_03 AC 40 ms
23,520 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 38 ms
23,352 KB
testcase_08 AC 39 ms
23,368 KB
testcase_09 WA -
testcase_10 AC 38 ms
24,232 KB
testcase_11 WA -
testcase_12 AC 39 ms
23,284 KB
testcase_13 AC 38 ms
23,784 KB
testcase_14 AC 38 ms
23,380 KB
testcase_15 AC 39 ms
23,604 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 37 ms
23,692 KB
testcase_19 AC 37 ms
23,484 KB
testcase_20 AC 38 ms
23,220 KB
testcase_21 AC 40 ms
23,988 KB
testcase_22 AC 37 ms
23,352 KB
testcase_23 AC 37 ms
23,980 KB
testcase_24 AC 38 ms
24,216 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 38 ms
23,616 KB
testcase_28 AC 38 ms
24,348 KB
testcase_29 AC 39 ms
23,708 KB
testcase_30 AC 37 ms
24,076 KB
testcase_31 AC 38 ms
23,860 KB
testcase_32 AC 36 ms
24,024 KB
testcase_33 AC 37 ms
24,256 KB
testcase_34 AC 37 ms
23,496 KB
testcase_35 AC 38 ms
24,168 KB
testcase_36 AC 39 ms
24,232 KB
testcase_37 AC 38 ms
23,664 KB
testcase_38 WA -
testcase_39 AC 39 ms
23,712 KB
testcase_40 AC 38 ms
23,508 KB
testcase_41 AC 38 ms
23,372 KB
testcase_42 AC 38 ms
24,012 KB
testcase_43 AC 37 ms
23,532 KB
testcase_44 AC 37 ms
23,436 KB
testcase_45 WA -
testcase_46 AC 39 ms
24,012 KB
testcase_47 AC 37 ms
24,000 KB
testcase_48 AC 41 ms
23,484 KB
testcase_49 AC 38 ms
24,192 KB
testcase_50 AC 38 ms
23,872 KB
testcase_51 AC 38 ms
23,704 KB
testcase_52 RE -
testcase_53 AC 39 ms
23,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

res = []

lo, hi = 0, pow(10, 3)
for i in range(8):
    mi = (lo + hi) // 2
    ok = False
    for x in range(mi - 1, mi + 2):
        print(f"? {x}")
        if input() == "safe":
            ok = True
            res.append(x)
    if ok:
        lo = mi
    else:
        hi = mi - 1

print(f"! {max(res)}")
0