
1
2
3
4
5
6
7
8
9
10
11
|
from collections import Counter
def sol(origin_name, target_name):
if sorted(Counter(target_name).items())== sorted(Counter(origin_name).items()):
print("YES")
else:
print("NO")
n=int(input())
for i in range(n):
str_len=int(input())
target_name=input()
sol('Timur',target_name)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 8871 Zadanie próbne 2 (0) | 2022.09.13 |
---|---|
백준 8545 Zadanie próbne (0) | 2022.09.13 |
codeforces 1722B - Colourblindness (0) | 2022.09.06 |
백준 25494 단순한 문제 (Small) (0) | 2022.08.30 |
codeforces 1714C - Minimum Varied Number (0) | 2022.08.18 |
댓글