[백준 알고리즘] 2562번 최댓값(Python 3, Java)
언어, 알고리즘 공부/백준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_..

image