結果

問題 No.2307 [Cherry 5 th Tune *] Cool 46
ユーザー tailstails
提出日時 2023-05-19 21:43:58
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 704 bytes
コンパイル時間 3,770 ms
コンパイル使用メモリ 175,020 KB
実行使用メモリ 14,964 KB
最終ジャッジ日時 2023-08-23 02:46:13
合計ジャッジ時間 26,045 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 92 ms
8,780 KB
testcase_09 WA -
testcase_10 AC 100 ms
9,528 KB
testcase_11 AC 99 ms
8,336 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 87 ms
9,640 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 145 ms
14,888 KB
testcase_19 AC 149 ms
10,960 KB
testcase_20 AC 170 ms
14,756 KB
testcase_21 AC 153 ms
14,056 KB
testcase_22 AC 132 ms
14,816 KB
testcase_23 AC 159 ms
14,476 KB
testcase_24 AC 139 ms
13,068 KB
testcase_25 AC 140 ms
14,028 KB
testcase_26 AC 163 ms
14,836 KB
testcase_27 AC 139 ms
14,256 KB
testcase_28 AC 162 ms
14,172 KB
testcase_29 AC 157 ms
14,616 KB
testcase_30 AC 143 ms
11,564 KB
testcase_31 AC 164 ms
14,772 KB
testcase_32 AC 167 ms
14,780 KB
testcase_33 AC 125 ms
14,964 KB
testcase_34 AC 131 ms
13,920 KB
testcase_35 AC 146 ms
11,512 KB
testcase_36 AC 162 ms
13,456 KB
testcase_37 AC 147 ms
14,220 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 58 ms
5,436 KB
testcase_42 AC 142 ms
10,136 KB
testcase_43 AC 137 ms
10,276 KB
testcase_44 AC 125 ms
14,776 KB
testcase_45 AC 120 ms
14,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@t;
rep(t){
	set<ll>x,y,z;
	ll@n,@m;
	rep(n){
		ll@a;
		x.insert(a);
	}
	rep(m){
		ll@a;
		if(x.count(a)){
			x.erase(a);
			z.insert(a);
		}else{
			y.insert(a);
		}
	}
	if(z.empty()&&!x.empty()&&!y.empty()){
		wt("No");
	}else{
		wt("Yes");
		ll u=n<m;
		while(!x.empty()||!y.empty()||!z.empty()){
			if(u){
				while(!y.empty()){
					ll a=*y.begin();
					y.erase(a);
					wt("Blue",a);
				}
				if(1){
					ll a=*z.begin();
					z.erase(a);
					wt("Blue",a);
					wt("Red",a);
				}
			}else{
				while(!x.empty()){
					ll a=*x.begin();
					x.erase(a);
					wt("Red",a);
				}
				if(1){
					ll a=*z.begin();
					z.erase(a);
					wt("Red",a);
					wt("Blue",a);
				}
			}
			u=!u;
		}
	}
}
0