結果

問題 No.1187 皇帝ペンギン
ユーザー NatsubiSogan
提出日時 2020-10-04 15:56:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 58 ms / 1,000 ms
コード長 210 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,472 KB
平均クエリ数 22.96
最終ジャッジ日時 2024-07-17 07:02:35
合計ジャッジ時間 5,883 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 54
権限があれば一括ダウンロードができます

ソースコード

diff #

l, r = 0, 2000
while r - l > 1:
    m = (l + r) // 2
    print("?", m)
    res = input()
    print("?", m + 1)
    res2 = input()
    if res == res2 == "out":
        r = m
    else:
        l = m
print("!", l)
0