結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 14:54:53 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 415 bytes |
| 記録 | |
| コンパイル時間 | 135 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 99,148 KB |
| 最終ジャッジ日時 | 2026-03-31 21:08:08 |
| 合計ジャッジ時間 | 4,596 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)