結果

問題 No.2502 Optimization in the Dark
ユーザー tailstails
提出日時 2023-10-13 21:23:58
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 3,408 ms
コンパイル使用メモリ 161,888 KB
実行使用メモリ 24,456 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-10-13 21:24:08
合計ジャッジ時間 7,388 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
23,292 KB
testcase_01 AC 26 ms
24,228 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 24 ms
24,060 KB
testcase_05 AC 26 ms
23,640 KB
testcase_06 WA -
testcase_07 AC 23 ms
23,400 KB
testcase_08 AC 24 ms
23,496 KB
testcase_09 AC 24 ms
23,892 KB
testcase_10 WA -
testcase_11 AC 25 ms
23,952 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 25 ms
23,712 KB
testcase_18 AC 24 ms
23,412 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 43 ms
23,544 KB
testcase_23 AC 24 ms
24,012 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 25 ms
23,268 KB
testcase_27 AC 24 ms
24,084 KB
testcase_28 AC 24 ms
24,252 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

//interactive
ll q(ll i,ll j,ll x){
	wt("?",i,x,j,x);
	char r[8];
	rd(r);
	return r[0]=='N'?i:j;
}

{
	ll@n,a,b,c;
	a=q(q(1,2,2n),3,2n);
	b=q(a%3+1,(a+1)%3+1,2n-1);
	c=6-a-b;
	wtSp("!");
	rep(n-1){
		wtSp(a,b,a,c,b,c);
	}
	wt(a,b,a,c,b,c);
}

0