#solution
max = 0
for i in range(9):
num = int(input(""))
if max < num:
max = num
index_max = i
print(max)
print(index_max+1)
문제출처: 백준
'Write-up > 백준' 카테고리의 다른 글
백준 4673번 - 셀프넘버(python) (0) | 2019.12.27 |
---|---|
백준 5622번 - 다이얼(python) (0) | 2019.12.26 |
백준 2675번 -문자열 반복(python) (0) | 2019.12.26 |
백준 11720 - 숫자의 합(python) (0) | 2019.12.22 |
백준 2577번 - 숫자의 개수(python) (0) | 2019.12.22 |