結果

問題 No.246 質問と回答
ユーザー kotatsugamekotatsugame
提出日時 2016-10-30 09:10:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 63,576 KB
実行使用メモリ 24,540 KB
平均クエリ数 31.00
最終ジャッジ日時 2023-09-23 11:44:37
合計ジャッジ時間 3,506 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 41 ms
23,556 KB
testcase_03 AC 40 ms
24,072 KB
testcase_04 AC 41 ms
23,556 KB
testcase_05 WA -
testcase_06 AC 42 ms
24,048 KB
testcase_07 AC 41 ms
24,408 KB
testcase_08 AC 40 ms
24,060 KB
testcase_09 WA -
testcase_10 AC 42 ms
23,436 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 40 ms
24,372 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 40 ms
23,388 KB
testcase_21 AC 40 ms
23,628 KB
testcase_22 AC 40 ms
23,868 KB
testcase_23 WA -
testcase_24 AC 40 ms
23,544 KB
testcase_25 AC 40 ms
23,544 KB
testcase_26 WA -
testcase_27 AC 39 ms
23,424 KB
testcase_28 WA -
testcase_29 AC 41 ms
24,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type]
    2 | main(){
      | ^~~~

ソースコード

diff #

#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);
}
0