-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")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 17249번 태보태보 총난타 (0) | 2022.08.20 |
---|---|
[백준/파이썬] 20528번 끝말잇기 (0) | 2022.08.19 |
[백준/파이썬] 14624번 전북대학교 (0) | 2022.08.17 |
[백준/파이썬] 15813번 너의 이름은 몇 점이니? (0) | 2022.08.16 |
[백준/파이썬] 20299번 3대 측정 (0) | 2022.08.15 |