-
[python]백준 Majestic 10 25893번알고리즘 문제풀이/백준(파이썬) 2023. 3. 14. 23:53
코드
import sys z=['zilch','double','double-double','triple-double'] for i in range(int(input())): a=list(map(int,input().split())) s=0 for i in a: if i>=10: s+=1 if s==0: print(*a) print(z[s]) print() elif s==1: print(*a) print(z[s]) print() elif s==2: print(*a) print(z[s]) print() else: print(*a) print(z[s]) print()
링크:https://www.acmicpc.net/problem/25893
25893번: Majestic 10
The movie “Magnificent 7” has become a western classic. Well, this year we have 10 coaches training the UCF programming teams and once you meet them, you’ll realize why they are called the “Majestic 10”! The number 10 is actually special in many
www.acmicpc.net
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 당신은 운명을 믿나요? 27930번 (0) 2023.04.28 [python]백준 10부제 10797번 (0) 2023.04.28 [python]백준 초코바 27959번 (0) 2023.04.27 [python]백준 특별한 학교 이름 27889번 (0) 2023.04.26 [python]백준 가위 바위 보? 4493번 (1) 2023.04.25