結果

問題 No.2502 Optimization in the Dark
ユーザー tailstails
提出日時 2023-10-16 10:07:35
言語 cLay
(20240104-1)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 2,479 ms
コンパイル使用メモリ 171,576 KB
実行使用メモリ 26,524 KB
平均クエリ数 4.00
最終ジャッジ日時 2023-10-16 10:07:43
合計ジャッジ時間 7,271 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,816 KB
testcase_01 AC 25 ms
26,128 KB
testcase_02 AC 25 ms
25,588 KB
testcase_03 AC 25 ms
25,728 KB
testcase_04 AC 25 ms
25,644 KB
testcase_05 AC 25 ms
26,236 KB
testcase_06 AC 26 ms
25,668 KB
testcase_07 AC 25 ms
25,580 KB
testcase_08 AC 26 ms
25,632 KB
testcase_09 AC 25 ms
25,548 KB
testcase_10 AC 25 ms
26,396 KB
testcase_11 AC 26 ms
26,108 KB
testcase_12 AC 27 ms
26,088 KB
testcase_13 AC 25 ms
25,648 KB
testcase_14 AC 25 ms
25,724 KB
testcase_15 AC 25 ms
25,700 KB
testcase_16 AC 25 ms
25,868 KB
testcase_17 AC 25 ms
25,592 KB
testcase_18 AC 26 ms
25,884 KB
testcase_19 AC 35 ms
25,568 KB
testcase_20 AC 26 ms
26,404 KB
testcase_21 AC 26 ms
26,292 KB
testcase_22 AC 25 ms
26,472 KB
testcase_23 AC 25 ms
25,632 KB
testcase_24 AC 25 ms
25,824 KB
testcase_25 AC 25 ms
26,084 KB
testcase_26 AC 25 ms
25,604 KB
testcase_27 AC 26 ms
26,432 KB
testcase_28 AC 26 ms
25,712 KB
testcase_29 AC 25 ms
26,340 KB
testcase_30 AC 25 ms
26,100 KB
testcase_31 AC 49 ms
25,596 KB
testcase_32 AC 26 ms
25,572 KB
testcase_33 AC 26 ms
25,404 KB
testcase_34 AC 25 ms
26,524 KB
testcase_35 AC 26 ms
25,596 KB
testcase_36 AC 25 ms
26,436 KB
testcase_37 AC 25 ms
26,204 KB
testcase_38 AC 25 ms
26,496 KB
testcase_39 AC 25 ms
26,376 KB
testcase_40 AC 25 ms
25,700 KB
testcase_41 AC 25 ms
25,636 KB
testcase_42 AC 25 ms
25,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//interactive

#include <unistd.h>

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

{
	if(fork()){
		_exit(0);
	}
	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