結果
| 問題 |
No.3212 SUPER Guess the Number
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-07-25 22:25:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 239 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 82,756 KB |
| 実行使用メモリ | 71,144 KB |
| 平均クエリ数 | 26.00 |
| 最終ジャッジ日時 | 2025-07-25 22:25:49 |
| 合計ジャッジ時間 | 3,729 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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