結果
問題 |
No.246 質問と回答
|
ユーザー |
![]() |
提出日時 | 2023-01-14 13:52:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 90 ms / 2,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 82,268 KB |
実行使用メモリ | 70,540 KB |
平均クエリ数 | 30.90 |
最終ジャッジ日時 | 2024-07-16 20:30:26 |
合計ジャッジ時間 | 4,562 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
import sys yes = 1 no = 10 ** 9 + 1 while no - yes != 1: mid = (yes + no)//2 print("? %d" % mid) sys.stdout.flush() if int(input()): yes = mid else: no = mid print("! %d" % yes) sys.stdout.flush()