結果
問題 |
No.246 質問と回答
|
ユーザー |
|
提出日時 | 2015-07-13 11:45:00 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 25,916 KB |
平均クエリ数 | 30.00 |
最終ジャッジ日時 | 2024-07-16 06:50:18 |
合計ジャッジ時間 | 3,570 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 30 |
ソースコード
import sys A = 0 B = 10 ** 9 + 1 while B - A > 1: c = (A + B) // 2 print "? %d" % c sys.stdout.flush() response = raw_input() if response == 1: A = c else: B = c print "! %d" % c