結果

問題 No.2502 Optimization in the Dark
ユーザー tailstails
提出日時 2023-10-13 21:31:31
言語 cLay
(20240104-1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 1,906 ms
コンパイル使用メモリ 162,912 KB
実行使用メモリ 24,312 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-10-13 21:31:45
合計ジャッジ時間 5,616 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
23,316 KB
testcase_01 AC 24 ms
23,292 KB
testcase_02 AC 24 ms
23,556 KB
testcase_03 AC 24 ms
23,664 KB
testcase_04 AC 24 ms
24,012 KB
testcase_05 AC 23 ms
23,580 KB
testcase_06 AC 24 ms
23,628 KB
testcase_07 AC 24 ms
24,216 KB
testcase_08 AC 24 ms
24,204 KB
testcase_09 AC 24 ms
23,568 KB
testcase_10 AC 25 ms
24,264 KB
testcase_11 AC 23 ms
23,664 KB
testcase_12 AC 24 ms
23,304 KB
testcase_13 AC 24 ms
24,300 KB
testcase_14 AC 23 ms
23,400 KB
testcase_15 AC 23 ms
23,412 KB
testcase_16 AC 23 ms
23,304 KB
testcase_17 AC 22 ms
23,664 KB
testcase_18 AC 24 ms
23,580 KB
testcase_19 AC 23 ms
23,796 KB
testcase_20 AC 23 ms
24,204 KB
testcase_21 AC 22 ms
23,316 KB
testcase_22 AC 23 ms
23,412 KB
testcase_23 AC 23 ms
23,388 KB
testcase_24 AC 24 ms
24,252 KB
testcase_25 AC 24 ms
23,340 KB
testcase_26 AC 23 ms
23,292 KB
testcase_27 AC 23 ms
23,544 KB
testcase_28 AC 24 ms
24,228 KB
testcase_29 AC 24 ms
23,556 KB
testcase_30 AC 23 ms
23,928 KB
testcase_31 AC 23 ms
24,288 KB
testcase_32 AC 23 ms
23,556 KB
testcase_33 AC 24 ms
23,388 KB
testcase_34 AC 23 ms
24,216 KB
testcase_35 AC 22 ms
24,024 KB
testcase_36 AC 25 ms
24,312 KB
testcase_37 AC 25 ms
24,036 KB
testcase_38 AC 24 ms
23,544 KB
testcase_39 AC 24 ms
23,448 KB
testcase_40 AC 24 ms
24,228 KB
testcase_41 AC 24 ms
23,952 KB
testcase_42 AC 26 ms
23,544 KB
権限があれば一括ダウンロードができます

ソースコード

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,n);
	c=6-a-b;
	wtN("!");
	rep(n){
		wtF(" {a} {b}");
	}
	rep(n){
		wtF(" {a} {c}");
	}
	rep(n){
		wtF(" {b} {c}");
	}
	wt("");
}

0