結果
問題 |
No.246 質問と回答
|
ユーザー |
![]() |
提出日時 | 2016-01-16 17:27:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 463 ms |
コンパイル使用メモリ | 57,636 KB |
実行使用メモリ | 43,032 KB |
最終ジャッジ日時 | 2024-07-16 19:59:49 |
合計ジャッジ時間 | 6,834 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
#include <iostream> #include <vector> #include <string> using namespace std; int main(){ int l = 0, r = 1000000001; while(r - l > 1) { int m = (l + r) / 2; cout << "? " << m; int a; cin >> a; cin.clear(); if(a == 0) { r = m; } else { l = m; } } cout << "! " << l << endl; cin.clear(); }