profile image

L o a d i n g . . .

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과 같다면 슬로건을 출력합니다.

쉬어가는 문제로 좋네요!

'백준 > Python' 카테고리의 다른 글

[백준][Python]16394 - 홍익대학교  (0) 2024.07.13
[백준][Python] 4999 - 아!  (0) 2024.07.10
[백준][Python] 27433 - 팩토리얼 2  (0) 2024.07.07
[백준][Python] 1336 - 두 수 비교하기  (0) 2024.07.02
[백준][Python] 3046 - R2  (0) 2024.06.27
복사했습니다!