結果
| 問題 |
No.1187 皇帝ペンギン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 14:28:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 403 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 82,496 KB |
| 実行使用メモリ | 83,880 KB |
| 平均クエリ数 | 23.20 |
| 最終ジャッジ日時 | 2024-07-17 06:18:38 |
| 合計ジャッジ時間 | 11,030 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 RE * 38 |
ソースコード
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)