import sys
sys.stdin=open("input.txt", "rt")
N = int(input())
res =0
for i in range(N):
tmp = input().split() #tmp는 리스트임, tmp리스트의 각 요소는 String타입
tmp.sort()
a, b, c =map(int, tmp) #tmp리스트의 요소는 a,b,c 에 들어감 (여기가 핵심임)
if a==b and b == c:
money = 10000+a*1000
elif a==b or b ==c:
money = 1000 + (a*100)
elif b == c:
money = 1000 + (b*100)
else:
moeny = c*100 #오름차순 정렬이 되어 있으므로 가장 오른쪽에 있는 c의 값이 가장 크다.
if money > res:
res = money
print(res)
'파이썬 알고리즘 > 파이썬 알고리즘(사고력기르기)' 카테고리의 다른 글
8. 뒤집은 소수→소수인지 판결하는 함수 def isPrime(x)★ (0) | 2022.10.31 |
---|---|
7. 소수의 개수→ for j in range(i, n, i)★★ (0) | 2022.10.31 |
6. 자릿수의 합 (0) | 2022.10.31 |
5. 정다면체 (0) | 2022.10.31 |
최소값 구하기 (0) | 2022.10.29 |