結果
問題 | No.2307 [Cherry 5 th Tune *] Cool 46 |
ユーザー | ntuda |
提出日時 | 2023-05-20 11:04:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 605 bytes |
コンパイル時間 | 452 ms |
コンパイル使用メモリ | 87,132 KB |
実行使用メモリ | 152,096 KB |
最終ジャッジ日時 | 2023-08-23 08:22:16 |
合計ジャッジ時間 | 31,476 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,264 KB |
testcase_01 | AC | 71 ms
71,152 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 | 235 ms
99,308 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 258 ms
126,880 KB |
testcase_19 | WA | - |
testcase_20 | AC | 273 ms
152,096 KB |
testcase_21 | AC | 274 ms
146,268 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 273 ms
119,832 KB |
testcase_28 | WA | - |
testcase_29 | AC | 277 ms
141,956 KB |
testcase_30 | WA | - |
testcase_31 | AC | 264 ms
152,012 KB |
testcase_32 | WA | - |
testcase_33 | AC | 260 ms
144,944 KB |
testcase_34 | AC | 272 ms
140,776 KB |
testcase_35 | AC | 270 ms
123,196 KB |
testcase_36 | WA | - |
testcase_37 | AC | 273 ms
129,364 KB |
testcase_38 | AC | 538 ms
77,868 KB |
testcase_39 | AC | 604 ms
79,356 KB |
testcase_40 | AC | 221 ms
79,336 KB |
testcase_41 | AC | 260 ms
80,660 KB |
testcase_42 | AC | 257 ms
120,340 KB |
testcase_43 | AC | 253 ms
120,524 KB |
testcase_44 | AC | 221 ms
123,432 KB |
testcase_45 | AC | 222 ms
123,196 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 * 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)