백준 6843번: Anagram Checker #Python

ColorlessDia·2024년 12월 15일

algorithm/baekjoon

목록 보기
392/807
A = ''.join(sorted(input().replace(' ', '')))
B = ''.join(sorted(input().replace(' ', '')))

print('Is an anagram.') if A == B else print('Is not an anagram.')

0개의 댓글