Notice
Recent Posts
Recent Comments
Link
Star_project
[인프런] 2. 자료구조와 알고리즘 입문 9.주사위 게임 본문
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)
'코딩테스트 > Python' 카테고리의 다른 글
[인프런] 3.탐색&시뮬레이션(string, 1차원, 2차원 리스트 탐색 ) 1.회문 문자열 검사 (0) | 2022.07.12 |
---|---|
[인프런] 2. 자료구조와 알고리즘 입문 10.점수 계산 (0) | 2022.07.12 |
[인프런] 2. 자료구조와 알고리즘 입문 8. 뒤집은 소수 (0) | 2022.07.12 |
[프로그래머스] 자릿수 더하기 (0) | 2022.07.11 |
2. 자료구조와 알고리즘 입문 7. 소수(에라토스테네스 체) (0) | 2022.07.11 |