結果

問題 No.2252 Find Zero
ユーザー tailstails
提出日時 2023-03-24 21:33:45
言語 cLay
(20240104-1)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 2,673 ms
コンパイル使用メモリ 173,248 KB
実行使用メモリ 24,660 KB
平均クエリ数 119.28
最終ジャッジ日時 2023-10-18 20:50:37
合計ジャッジ時間 4,544 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
24,660 KB
testcase_01 AC 51 ms
24,660 KB
testcase_02 AC 72 ms
24,660 KB
testcase_03 AC 62 ms
24,660 KB
testcase_04 AC 60 ms
24,660 KB
testcase_05 AC 51 ms
24,660 KB
testcase_06 AC 64 ms
24,660 KB
testcase_07 AC 62 ms
24,660 KB
testcase_08 AC 65 ms
24,660 KB
testcase_09 AC 62 ms
24,660 KB
testcase_10 AC 51 ms
24,660 KB
testcase_11 AC 51 ms
24,660 KB
testcase_12 AC 52 ms
24,660 KB
testcase_13 AC 52 ms
24,660 KB
testcase_14 AC 54 ms
24,660 KB
testcase_15 AC 53 ms
24,660 KB
testcase_16 AC 52 ms
24,660 KB
testcase_17 AC 52 ms
24,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//interactive
void f(ll x){
	wt("!",x);
	exit(0);
}
{
	ll@n;
	rrep(i,0,n-1,2){
		wt("?",i,i+1);
		ll@z;
		if(z==i){
			f(i+1);
		}
		if(z==i+1){
			f(i);
		}
	}
	f(0);
}
0