https://www.acmicpc.net/problem/27889
27889번: 특별한 학교 이름
GEC에는 여러 학교가 있다. 각 학교의 약칭과 정식 명칭은 다음과 같다. NLCS: North London Collegiate School BHA: Branksome Hall Asia KIS: Korea International School SJA: St. Johnsbury Academy 학교 이름을 좋아하는 규빈이
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
def sol(s):
name = {
'NLCS':'North London Collegiate School',
'BHA': 'Branksome Hall Asia',
'KIS': 'Korea International School',
'SJA': 'St. Johnsbury Academy'
}
if s in name:
return name[s]
if __name__ == '__main__':
s = input()
print(sol(s))
|
cs |
쉬운 문제인데 Saint. 뒤에 띄어쓰기한칸 있습니다..!
반응형
'python-algorithm' 카테고리의 다른 글
백준 27959 초코바 (0) | 2023.04.25 |
---|---|
leetcode 1431. Kids With the Greatest Number of Candies (0) | 2023.04.17 |
leetcode 2348. Number of Zero-Filled Subarrays (0) | 2023.03.21 |
leetcode 1009. Complement of Base 10 Integer (0) | 2023.03.20 |
leetcode 2553. Separate the Digits in an Array (0) | 2023.03.14 |
댓글