diff --git a/CodingTestStudy1.0/src/Implementation/Problem1966.java b/CodingTestStudy1.0/src/Implementation/Problem1966.java index a5d13c2..2dbb898 100644 --- a/CodingTestStudy1.0/src/Implementation/Problem1966.java +++ b/CodingTestStudy1.0/src/Implementation/Problem1966.java @@ -6,8 +6,6 @@ public class Problem1966 { static int T, N, M; - static Queue q = new LinkedList<>(); - public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); @@ -19,18 +17,20 @@ public static void main(String args[]) throws IOException { N = Integer.parseInt(str.nextToken()); M = Integer.parseInt(str.nextToken()); - int[] arr = new int[N];//우선순위를 저장 + int[] arr = new int[N]; //우선순위를 저장 + Queue q = new LinkedList<>(); + str = new StringTokenizer(br.readLine()); for (int i=0; i q){ int cnt = 1; int[] visited = new int[arr.length]; diff --git a/out/production/CodingTestStudy/src/Implementation/Problem1966.class b/out/production/CodingTestStudy/src/Implementation/Problem1966.class index 123341f..3f73d60 100644 Binary files a/out/production/CodingTestStudy/src/Implementation/Problem1966.class and b/out/production/CodingTestStudy/src/Implementation/Problem1966.class differ