結果
問題 | No.1187 皇帝ペンギン |
ユーザー | tktk_snsn |
提出日時 | 2021-02-09 01:59:04 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 87,260 KB |
実行使用メモリ | 95,500 KB |
平均クエリ数 | 21.44 |
最終ジャッジ日時 | 2023-09-24 09:45:57 |
合計ジャッジ時間 | 15,979 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | AC | 101 ms
87,620 KB |
testcase_03 | AC | 97 ms
86,984 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | AC | 98 ms
87,524 KB |
testcase_13 | RE | - |
testcase_14 | AC | 99 ms
87,572 KB |
testcase_15 | AC | 97 ms
87,568 KB |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | AC | 97 ms
87,456 KB |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | AC | 102 ms
87,192 KB |
testcase_23 | AC | 96 ms
87,188 KB |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | RE | - |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | AC | 99 ms
87,052 KB |
testcase_30 | RE | - |
testcase_31 | AC | 99 ms
87,912 KB |
testcase_32 | AC | 97 ms
87,556 KB |
testcase_33 | RE | - |
testcase_34 | RE | - |
testcase_35 | RE | - |
testcase_36 | AC | 98 ms
87,600 KB |
testcase_37 | AC | 99 ms
86,832 KB |
testcase_38 | RE | - |
testcase_39 | AC | 99 ms
87,528 KB |
testcase_40 | AC | 99 ms
87,664 KB |
testcase_41 | RE | - |
testcase_42 | AC | 100 ms
87,388 KB |
testcase_43 | AC | 96 ms
87,244 KB |
testcase_44 | AC | 96 ms
87,296 KB |
testcase_45 | RE | - |
testcase_46 | AC | 99 ms
87,604 KB |
testcase_47 | RE | - |
testcase_48 | RE | - |
testcase_49 | AC | 99 ms
87,368 KB |
testcase_50 | AC | 98 ms
87,632 KB |
testcase_51 | RE | - |
testcase_52 | WA | - |
testcase_53 | AC | 99 ms
87,360 KB |
ソースコード
l = 1 r = 1001 while r - l > 1: m = (l + r) // 2 print("? {}".format(m)) s = input() if s == "safe": l = m continue print("? {}".format(m - 1)) s = input() if s == "safe": l = m - 1 else: r = m - 1 print("! {}".format(l))