結果
| 問題 |
No.3212 SUPER Guess the Number
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-07-25 22:26:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 763 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 71,272 KB |
| 平均クエリ数 | 26.00 |
| 最終ジャッジ日時 | 2025-07-25 22:26:25 |
| 合計ジャッジ時間 | 3,449 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 12 |
ソースコード
l=1
r=10**6
print("?",l)
f=1
for _ in range(24):
if f:
print("?",r)
g=int(input())
if g:
l=(l+r)//2
f^=1
else:
r=(l+r)//2
else:
print("?",l)
g=int(input())
if g:
r=(l+r)//2
else:
l=(l+r)//2
f^=1
print("!",l)
sasa8uyauya