## 문제
BOJ 2562 최댓값
## 풀이
주어진 수 중에서 최댓값 찾고 몇 번째의 수인지 찾기
숫자는 9개가 주어진다.
## 코드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp_list = [] | |
for k in range(9): | |
tmp_input = int(input()) | |
tmp_list += [tmp_input] | |
print(max(tmp_list)) | |
print(tmp_list.index(max(tmp_list)) + 1) |
0 댓글