結果
問題 |
No.3171 Color Restoration
|
ユーザー |
![]() |
提出日時 | 2025-06-06 21:26:15 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 401 bytes |
コンパイル時間 | 457 ms |
コンパイル使用メモリ | 82,408 KB |
実行使用メモリ | 67,428 KB |
最終ジャッジ日時 | 2025-06-06 21:26:18 |
合計ジャッジ時間 | 2,843 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 RE * 3 |
ソースコード
S=['gray','brown','green','cyan','blue','yellow','orange','red'] T=['gray','green','blue','yellow','red'] U=['gray','green','cyan','blue','violet','orange','red'] a,b,c=input().split() B=sorted([a,b,c]) B=tuple(B) D={} for s in S: for t in T: for u in U: A=sorted([s,t,u]) A=tuple(A) if A not in D: D[A]=0 D[A]+=1 if D[B]==1: print('Yes') else: print('No')