結果
問題 | No.246 質問と回答 |
ユーザー |
![]() |
提出日時 | 2015-09-20 21:27:43 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 25,460 KB |
平均クエリ数 | 30.90 |
最終ジャッジ日時 | 2024-07-16 19:54:52 |
合計ジャッジ時間 | 3,851 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
# -*- coding: utf-8 -*-import systop = 10 ** 9bottom = 1while True:mid = (top + bottom) / 2print "? %d" % (mid)sys.stdout.flush()res = int(input())if res == 1:bottom = midelse:top = midif bottom + 1 >= top:breakprint "! %d" % (bottom)sys.stdout.flush()