結果
問題 |
No.246 質問と回答
|
ユーザー |
|
提出日時 | 2016-10-30 09:09:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 145 bytes |
コンパイル時間 | 438 ms |
コンパイル使用メモリ | 64,132 KB |
実行使用メモリ | 25,592 KB |
平均クエリ数 | 31.00 |
最終ジャッジ日時 | 2024-07-16 20:06:40 |
合計ジャッジ時間 | 3,471 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | main(){ | ^~~~
ソースコード
#include <iostream> main(){ int l=1,a,d=1e9; while(d-1) { ++d/=2; printf("? %d\n",l+d);std::cin>>a; if(a)l+=d; } printf("! %d\n",l); }