![[백준 알고리즘] 2562번 최댓값(Python 3, Java)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbcWuLb%2FbtqBWrHpUNB%2FctORUBoSfakiUGIqWvEKF1%2Fimg.png)
언어, 알고리즘 공부/백준2020. 2. 11. 23:10[백준 알고리즘] 2562번 최댓값(Python 3, Java)
a = list() for i in range(9): a.append(int(input())) print(max(a), a.index(max(a))+1) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int max = 0; int max_idx = 0; for(int i=0; imax){ max = num; max_..