시간&메모리 제한 문제 입력&출력 문제풀이 package com.back; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Back_10819 { static int n ; static int[] arr,temp; static int result; static boolean[] visited; public static void main(String[] args) throws NumberFormatException, IOException { BufferedRead..