結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 14:54:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 415 bytes |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 82,532 KB |
| 実行使用メモリ | 84,740 KB |
| 最終ジャッジ日時 | 2024-07-17 06:22:48 |
| 合計ジャッジ時間 | 4,712 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 53 |
ソースコード
import sys
x = 0
y = 1000
while x < y:
z = (x + y + 1) // 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)