結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-13 11:47:04 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 124 ms / 2,000 ms |
| コード長 | 227 bytes |
| 記録 | |
| コンパイル時間 | 1,676 ms |
| コンパイル使用メモリ | 76,448 KB |
| 実行使用メモリ | 92,768 KB |
| 平均クエリ数 | 30.87 |
| 最終ジャッジ日時 | 2024-07-16 19:36:55 |
| 合計ジャッジ時間 | 7,128 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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