python-algorithm
[백준] 2953
무적김두칠
2020. 12. 22. 17:26
1
2
3
4
5
6
7
8
|
import sys
tmp=[]
for i in range(5):
tmp.append(sum( map(int, sys.stdin.readline().split())))
checkMax=max(tmp)
for _ in range(5):
if checkMax==tmp[_]: print("%d %d"%(_+1,checkMax)); break;
|
cs |
반응형