結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-08-22 13:03:42 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 331 bytes |
| 記録 | |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,892 KB |
| 平均クエリ数 | 24.06 |
| 最終ジャッジ日時 | 2026-08-15 04:48:03 |
| 合計ジャッジ時間 | 13,125 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 40 |
ソースコード
import sys
input = sys.stdin.readline
OK=10**3
NG=-1
while OK-NG>1:
mid=(OK+NG)//2
print("?",mid,flush=True)
if input().strip()=="safe":
NG=mid-1
else:
print("?",mid+1,flush=True)
if input().strip()=="safe":
NG=mid
else:
OK=mid-1
print("!",OK,flush=True)
titia