結果
問題 | No.2307 [Cherry 5 th Tune *] Cool 46 |
ユーザー | ntuda |
提出日時 | 2023-05-20 11:14:16 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 611 bytes |
コンパイル時間 | 571 ms |
コンパイル使用メモリ | 86,968 KB |
実行使用メモリ | 152,116 KB |
最終ジャッジ日時 | 2023-08-23 08:27:15 |
合計ジャッジ時間 | 32,066 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 70 ms
71,044 KB |
testcase_01 | AC | 70 ms
71,148 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 226 ms
99,108 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 244 ms
126,636 KB |
testcase_19 | WA | - |
testcase_20 | AC | 268 ms
152,116 KB |
testcase_21 | AC | 272 ms
146,360 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 266 ms
119,956 KB |
testcase_28 | WA | - |
testcase_29 | AC | 281 ms
141,508 KB |
testcase_30 | WA | - |
testcase_31 | AC | 270 ms
151,612 KB |
testcase_32 | WA | - |
testcase_33 | AC | 258 ms
144,744 KB |
testcase_34 | AC | 276 ms
140,928 KB |
testcase_35 | AC | 276 ms
122,976 KB |
testcase_36 | WA | - |
testcase_37 | AC | 306 ms
129,372 KB |
testcase_38 | AC | 548 ms
78,164 KB |
testcase_39 | AC | 618 ms
79,380 KB |
testcase_40 | AC | 239 ms
79,236 KB |
testcase_41 | AC | 258 ms
80,852 KB |
testcase_42 | AC | 291 ms
120,284 KB |
testcase_43 | AC | 265 ms
120,500 KB |
testcase_44 | AC | 217 ms
123,264 KB |
testcase_45 | AC | 219 ms
123,380 KB |
ソースコード
T = int(input()) for t in range(T): N,M = map(int,input().split()) A = set(map(int,input().split())) B = set(map(int,input().split())) CO = A & B AO = A - CO BO = B - CO NC = len(CO) NA = len(AO) NB = len(BO) if NC == 0 and NA > 0 and NB > 0: print("No") continue print("Yes") for i in AO: print("Red",i) st = 0 for i in CO: if st == 0: print("Red",i) print("Blue",i) else: print("Blue",i) print("Red",i) st ^= 1 for i in BO: print("Blue",i)