2026-02-14 00:15:42 +09:00

23 lines
414 B
Python

import sys
input = sys.stdin.readline
N = int(input())
maxPrice = 0
for _ in range(N) :
a, b, c = map(int, input().split())
temp = 0
if a == b == c :
temp = 10000 + a*1000
elif a == b or b == c :
temp = 1000 + b*100
elif a == c :
temp = 1000 + a*100
else :
temp = max([a,b,c])*100
if maxPrice < temp :
maxPrice = temp
print(maxPrice)