본문 바로가기
python-algorithm

[백준] 2953

by 무적김두칠 2020. 12. 22.

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
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2985  (0) 2020.12.22
[백준] 2959  (0) 2020.12.22
[백준] 2935  (0) 2020.12.22
[백준] 2921  (0) 2020.12.22
[백준] 2903  (0) 2020.12.22

댓글