Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

Star_project

[인프런] 2. 자료구조와 알고리즘 입문 9.주사위 게임 본문

코딩테스트/Python

[인프런] 2. 자료구조와 알고리즘 입문 9.주사위 게임

star빛 2022. 7. 12. 14:27
import sys
sys.stdin=open("pythonalgorithm/섹션 2/9. 주사위 게임/in5.txt","rt")
n=int(input())
res=0
for _ in range(n):
    tmp=list(map(int,input().split()))
    tmp.sort()
    a,b,c=tmp
    if a==b and b==c:
        money=10000+1000*a
    elif a==b or a==c:
        money=1000+100*a
    elif b==c:
        money=1000+100*b
    else:
        money=100*c
    if money>res:
        res=money
print(res)