로딩
티스토리 데이터 처리 중입니다.

(JAVA) 백준 알고리즘 2562 문제 - 최댓값 구하기

 (JAVA) 백준 알고리즘 2562 문제 - 최댓값 구하기

(20분) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 import java.util.Scanner; public class MainTest2562 { public static void main(String[] args) { //최댓값 Scanner sc = new Scanner(System.in); int max = 0; int max_loc = 0; for(int i = 1; i max) { max = num; max_loc = i; } } System.out.println(max); System.out.println(max_loc); } } Colored by Color Scripter...