Problem Solving/BOJ
[BOJ] 2083
fabichoi
2022. 4. 15. 23:45
https://www.acmicpc.net/problem/2083
2083번: 럭비 클럽
입력 받은 각 회원에 대해 이름과 분류를 출력한다. 성인부 회원이면 'Senior', 청소년부 회원이면 'Junior'를 출력한다.
www.acmicpc.net
단순 구현 문제. if 문 하나면 끝. (종료 조건 제외)
import sys
input = sys.stdin.readline
while True:
name, age, weight = input().rstrip().split(' ')
if [name, age, weight] == ['#', '0', '0']:
break
if int(age) > 17 or int(weight) >= 80:
print(name + ' Senior')
continue
print(name + ' Junior')
반응형