結果
問題 | No.1187 皇帝ペンギン |
ユーザー | mlihua09 |
提出日時 | 2020-08-22 14:28:51 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 87,076 KB |
実行使用メモリ | 95,300 KB |
平均クエリ数 | 23.20 |
最終ジャッジ日時 | 2023-09-24 06:02:43 |
合計ジャッジ時間 | 17,284 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | AC | 86 ms
87,476 KB |
testcase_09 | AC | 84 ms
87,640 KB |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | AC | 82 ms
87,180 KB |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | AC | 82 ms
86,752 KB |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | AC | 86 ms
87,540 KB |
testcase_21 | AC | 82 ms
87,044 KB |
testcase_22 | RE | - |
testcase_23 | RE | - |
testcase_24 | AC | 82 ms
87,344 KB |
testcase_25 | RE | - |
testcase_26 | RE | - |
testcase_27 | AC | 81 ms
87,052 KB |
testcase_28 | AC | 82 ms
87,784 KB |
testcase_29 | RE | - |
testcase_30 | RE | - |
testcase_31 | RE | - |
testcase_32 | RE | - |
testcase_33 | RE | - |
testcase_34 | RE | - |
testcase_35 | AC | 84 ms
87,016 KB |
testcase_36 | RE | - |
testcase_37 | RE | - |
testcase_38 | AC | 86 ms
87,112 KB |
testcase_39 | RE | - |
testcase_40 | RE | - |
testcase_41 | AC | 89 ms
87,288 KB |
testcase_42 | RE | - |
testcase_43 | RE | - |
testcase_44 | RE | - |
testcase_45 | RE | - |
testcase_46 | RE | - |
testcase_47 | RE | - |
testcase_48 | AC | 89 ms
87,556 KB |
testcase_49 | AC | 86 ms
86,968 KB |
testcase_50 | AC | 85 ms
86,972 KB |
testcase_51 | AC | 81 ms
87,384 KB |
testcase_52 | RE | - |
testcase_53 | RE | - |
ソースコード
import sys x = 0 y = 1000 while x < y: z = (x + y) // 2 print('?', z) if input() == 'safe': sys.stdout.flush() x = z continue sys.stdout.flush() print('?', z + 1) if input() == 'safe': x = z + 1 else: y = z - 1 sys.stdout.flush() print('!', x)