結果
| 問題 |
No.3212 SUPER Guess the Number
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-07-25 22:02:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 28,280 KB |
| 平均クエリ数 | 24.25 |
| 最終ジャッジ日時 | 2025-07-25 22:02:39 |
| 合計ジャッジ時間 | 2,705 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 8 RE * 4 |
ソースコード
import sys
input = sys.stdin.readline
MIN=1
MAX=10**6
mae=MIN
count=0
print("?",MIN,flush=True)
while MIN!=MAX:
half=(MIN+MAX)//2
tugi=mae+(half-mae)*2
print("?",tugi,flush=True)
ANS=int(input())
if ANS==1:
MIN=half
else:
MAX=half
mae=tugi
print(MIN)
titia