結果
問題 | No.2307 [Cherry 5 th Tune *] Cool 46 |
ユーザー |
![]() |
提出日時 | 2023-05-20 11:14:16 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 611 bytes |
コンパイル時間 | 522 ms |
コンパイル使用メモリ | 82,380 KB |
実行使用メモリ | 149,016 KB |
最終ジャッジ日時 | 2024-12-21 09:44:58 |
合計ジャッジ時間 | 26,090 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 WA * 25 |
ソースコード
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 & BAO = A - COBO = B - CONC = len(CO)NA = len(AO)NB = len(BO)if NC == 0 and NA > 0 and NB > 0:print("No")continueprint("Yes")for i in AO:print("Red",i)st = 0for i in CO:if st == 0:print("Red",i)print("Blue",i)else:print("Blue",i)print("Red",i)st ^= 1for i in BO:print("Blue",i)