結果

問題 No.1187 皇帝ペンギン
ユーザー ああいいああいい
提出日時 2021-12-28 23:18:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,592 KB
平均クエリ数 12.57
最終ジャッジ日時 2024-04-10 15:38:30
合計ジャッジ時間 6,329 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
26,952 KB
testcase_01 AC 49 ms
27,080 KB
testcase_02 AC 48 ms
27,256 KB
testcase_03 WA -
testcase_04 AC 46 ms
27,464 KB
testcase_05 AC 48 ms
27,208 KB
testcase_06 AC 49 ms
27,336 KB
testcase_07 AC 46 ms
26,824 KB
testcase_08 AC 46 ms
27,080 KB
testcase_09 WA -
testcase_10 AC 46 ms
27,216 KB
testcase_11 WA -
testcase_12 AC 46 ms
27,336 KB
testcase_13 AC 47 ms
26,952 KB
testcase_14 AC 47 ms
27,208 KB
testcase_15 AC 47 ms
27,592 KB
testcase_16 AC 47 ms
27,464 KB
testcase_17 AC 45 ms
27,336 KB
testcase_18 AC 46 ms
27,208 KB
testcase_19 AC 46 ms
27,208 KB
testcase_20 AC 47 ms
27,336 KB
testcase_21 AC 46 ms
26,832 KB
testcase_22 AC 47 ms
26,960 KB
testcase_23 AC 45 ms
27,248 KB
testcase_24 AC 45 ms
27,472 KB
testcase_25 AC 47 ms
27,256 KB
testcase_26 AC 46 ms
26,960 KB
testcase_27 AC 48 ms
27,088 KB
testcase_28 AC 48 ms
27,216 KB
testcase_29 AC 48 ms
27,344 KB
testcase_30 AC 49 ms
27,088 KB
testcase_31 AC 48 ms
27,224 KB
testcase_32 AC 48 ms
26,960 KB
testcase_33 AC 48 ms
26,832 KB
testcase_34 AC 47 ms
26,704 KB
testcase_35 AC 47 ms
27,088 KB
testcase_36 AC 46 ms
26,832 KB
testcase_37 AC 47 ms
26,960 KB
testcase_38 WA -
testcase_39 AC 46 ms
27,088 KB
testcase_40 AC 46 ms
26,832 KB
testcase_41 AC 46 ms
27,224 KB
testcase_42 AC 48 ms
27,096 KB
testcase_43 AC 45 ms
27,352 KB
testcase_44 AC 47 ms
27,224 KB
testcase_45 AC 46 ms
26,840 KB
testcase_46 AC 48 ms
26,712 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 AC 49 ms
27,344 KB
testcase_53 AC 48 ms
27,344 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
            end = mid
        else:
            end = mid-1
print('!',start)
0