結果
| 問題 | No.1187 皇帝ペンギン |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2020-08-22 13:09:48 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 331 bytes |
| 記録 | |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,720 KB |
| 平均クエリ数 | 21.56 |
| 最終ジャッジ日時 | 2024-07-17 06:07:39 |
| 合計ジャッジ時間 | 9,398 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 WA * 28 |
ソースコード
import sys
input = sys.stdin.readline
NG=10**3
OK=0
while NG-OK>1:
mid=(OK+NG)//2
print("?",mid,flush=True)
if input().strip()=="safe":
OK=mid
else:
print("?",mid-1,flush=True)
if input().strip()=="safe":
OK=mid-1
else:
NG=mid-1
print("!",OK,flush=True)
titia