1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import sys
def cyper(n):
if n==0 : ans=' '
elif n>=1 and n<=26: ans=chr(n+96)
else : ans=chr(n+38)
return ans
n=int(input())
tmp=list(map(int,sys.stdin.readline().split()))
tmpList=[]
for i in tmp: tmpList.append(cyper(i).lower())
tmpList.sort()
s=input()
strList=[]
for i in s: strList.append(i.lower())
strList.sort()
if tmpList==strList : print('y')
else: print('n')
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 12871 무한 문자열 (0) | 2021.12.14 |
---|---|
백준 18917 수열과 쿼리 38 (0) | 2021.12.14 |
백준 11068 회문인 수 (0) | 2021.12.09 |
백준 16212 정열적인 정렬 (0) | 2021.12.09 |
백준 11170 0의 개수 (0) | 2021.12.09 |
댓글