結果
問題 |
No.246 質問と回答
|
ユーザー |
![]() |
提出日時 | 2015-07-17 23:25:58 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 7,068 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 101.00 |
最終ジャッジ日時 | 2024-07-16 07:04:06 |
合計ジャッジ時間 | 3,645 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 30 |
ソースコード
import sys mid = 1 left=0 right=1000000000 res = 1 while left<right: mid=(right+left)/2 print ("? %d" % mid) sys.stdout.flush() res = int(input()) if res==1: mid=left+1 else: mid=right+1 printf("! %d" % mid) sys.stdout.flush()