結果
問題 | No.246 質問と回答 |
ユーザー |
![]() |
提出日時 | 2015-10-31 03:34:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 55,552 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 30.90 |
最終ジャッジ日時 | 2024-07-16 19:56:14 |
合計ジャッジ時間 | 3,446 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <iostream>using namespace std;int main(){int L=1, R=1000000001;while (R-L>1) {int M=(L+R)/2;cout<<"? "<<M<<endl;int in;cin>>in;if (in)L=M;elseR=M;}cout<<"! "<<L<<endl;}