結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 14:41:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 411 bytes |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 82,508 KB |
| 実行使用メモリ | 82,068 KB |
| 平均クエリ数 | 0.48 |
| 最終ジャッジ日時 | 2024-07-17 06:20:16 |
| 合計ジャッジ時間 | 3,398 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 1 TLE * 1 -- * 52 |
ソースコード
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()
if input() == 'safe':
x = z + 1
else:
y = z - 1
sys.stdout.flush()
print('!', x)