結果
問題 |
No.246 質問と回答
|
ユーザー |
|
提出日時 | 2016-10-30 09:10:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 141 bytes |
コンパイル時間 | 696 ms |
コンパイル使用メモリ | 64,024 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 31.00 |
最終ジャッジ日時 | 2024-07-16 11:19:12 |
合計ジャッジ時間 | 4,695 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 15 |
コンパイルメッセージ
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) { d/=2; printf("? %d\n",l+d);std::cin>>a; if(a)l+=d; } printf("! %d\n",l); }