백준 알고리즘/python

[ 2562 ] 최댓값

power-girl0-0 2021. 3. 2. 00:56
728x90

max = 0
cnt = 0

for i in range(9):
    cnt +=1
    num = int(input())
    if(max < num):
        max = num
        location = cnt

print(max, location)
728x90