목록차이를 최대로 (1)
hara
BEAKJOON JAVA ALGORITHM #10819(차이를 최대로)
https://www.acmicpc.net/problem/10819 import java.util.Arrays; import java.util.Scanner; public class a10819 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = new int[num]; for(int i=0; i= arr[i]) { i--; } if(i = i && arr[j]
공부/알고리즘
2017. 8. 14. 14:55