結果
問題 |
No.3212 SUPER Guess the Number
|
ユーザー |
![]() |
提出日時 | 2025-08-04 21:09:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 82,828 KB |
実行使用メモリ | 70,936 KB |
平均クエリ数 | 21.67 |
最終ジャッジ日時 | 2025-08-04 21:09:15 |
合計ジャッジ時間 | 4,007 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 11 |
ソースコード
a=0 print('?',a,flush=True) l=1 r=10**6 while True: if l==r: break m=(l+r)//2 if a<m: k=m-a a2=a+k+1 print('?',a2,flush=True) ans=int(input()) if ans==1: l=m+1 else: r=m else: k=a-m a2=a-(k+1) print('?',a2,flush=True) ans=int(input()) if ans==1: r=m else: l=m a=a2 print('!',l,flush=True)