結果
問題 |
No.246 質問と回答
|
ユーザー |
|
提出日時 | 2015-07-13 11:46:48 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 989 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 30.87 |
最終ジャッジ日時 | 2024-07-16 19:37:17 |
合計ジャッジ時間 | 3,916 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
import sys A = 0 B = 10 ** 9 + 1 while B - A > 1: c = (A + B) // 2 print "? %d" % c sys.stdout.flush() response = int(raw_input()) if response == 1: A = c else: B = c print "! %d" % A