結果

問題 No.2307 [Cherry 5 th Tune *] Cool 46
ユーザー tailstails
提出日時 2023-05-19 21:43:58
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 704 bytes
コンパイル時間 2,618 ms
コンパイル使用メモリ 186,676 KB
実行使用メモリ 14,848 KB
最終ジャッジ日時 2024-06-01 00:25:07
合計ジャッジ時間 24,538 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
6,816 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 89 ms
8,704 KB
testcase_09 WA -
testcase_10 AC 97 ms
9,472 KB
testcase_11 AC 97 ms
8,320 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 82 ms
9,600 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 143 ms
14,848 KB
testcase_19 AC 148 ms
10,880 KB
testcase_20 AC 169 ms
14,720 KB
testcase_21 AC 160 ms
14,080 KB
testcase_22 AC 140 ms
14,848 KB
testcase_23 AC 163 ms
14,336 KB
testcase_24 AC 148 ms
13,056 KB
testcase_25 AC 143 ms
13,952 KB
testcase_26 AC 167 ms
14,848 KB
testcase_27 AC 143 ms
14,080 KB
testcase_28 AC 169 ms
14,336 KB
testcase_29 AC 174 ms
14,720 KB
testcase_30 AC 154 ms
11,520 KB
testcase_31 AC 175 ms
14,720 KB
testcase_32 AC 172 ms
14,720 KB
testcase_33 AC 133 ms
14,720 KB
testcase_34 AC 133 ms
13,696 KB
testcase_35 AC 148 ms
11,264 KB
testcase_36 AC 166 ms
13,440 KB
testcase_37 AC 157 ms
14,336 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 55 ms
6,940 KB
testcase_42 AC 147 ms
10,240 KB
testcase_43 AC 155 ms
10,112 KB
testcase_44 AC 134 ms
14,848 KB
testcase_45 AC 133 ms
14,720 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