BOJ/백준-27889-Python

cosmos·2023년 4월 6일
0
post-thumbnail
post-custom-banner

문제

코드

# https://www.acmicpc.net/problem/27889
# boj, 27889: 특별한 학교 이름, python3
def solve(school_name: str) -> str:
    school_dict = {
        'NLCS': 'North London Collegiate School',
        'BHA': 'Branksome Hall Asia',
        'KIS': 'Korea International School',
        'SJA': 'St. Johnsbury Academy'
    }
    return school_dict[school_name]

if __name__ == '__main__':
    school_name = str(input())

    print(solve(school_name))

결과

출처 & 깃허브

boj
github

post-custom-banner

0개의 댓글