본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 11328번 Strfry

by 현장 2022. 8. 18.

-Code

for _ in range(int(input())):
    s1, s2 = input().split()
    s1 = sorted(list(s1))
    s2 = sorted(list(s2))
    if s1 == s2:
        print("Possible")
    else:
        print("Impossible")