백준/Python

[백준][Python]15680 - 연세대학교

Namani 2024. 7. 11. 17:31

https://www.acmicpc.net/problem/15680


 

data = input()

if data == '0':
    print("YONSEI")
elif data == '1':
    print("Leading the Way to the Future")

연세대학교의 영문명은 YONSEI, 슬로건은 Leading the Way to the Future이다.
N = 0일 경우: 연세대학교의 영문명을 출력한다.
N = 1일 경우: 연세대학교의 슬로건을 출력한다.
data = input()

사용자로부터 값을 입력 받아 변수 `data`에 대입합니다.

 

if data == '0':
    print("YONSEI")
elif data == '1':
    print("Leading the Way to the Future")

`data`의 값이 0과 같다면 YONSEI 를 출력합니다. 1과 같다면 슬로건을 출력합니다.

쉬어가는 문제로 좋네요!