← Back to List

9056번: Letter Bank ↗

Solutions

Python 3
123 B | 123 chars
for i in range(int(input())):
    a,b = input().split()
    print("NO" if len({*a} - {*b}) or len({*b} - {*a}) else "YES")