結果
| 問題 | No.246 質問と回答 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-02 12:13:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 547 ms |
| コンパイル使用メモリ | 69,044 KB |
| 実行使用メモリ | 43,156 KB |
| 最終ジャッジ日時 | 2024-07-16 15:33:40 |
| 合計ジャッジ時間 | 6,937 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 29 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <set>
using namespace std;
int main(){
int left = 0, right = 1e9;
while(left < right){
int middle = (left + right) / 2;
cout << "? " << middle << endl;
bool response;
cin >> response;
if(response){
left = middle;
}else{
right = middle - 1;
}
}
cout << "! " << left << endl;
}