새소식

Algorithm/Acmicpc.net (백준)

[python] 백준 : 럭비클럽 (2083번)

  • -
while True:
    name, age, weight = input().split()
    age = int(age)
    weight = int(weight)
    if name[0] == '#' and age == 0 and weight == 0:
        break
    if age > 17 or weight >= 80:
        print("%s Senior" % name)
    else:
        print("%s Junior" % name)
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.