How to understand POJ 1986 java code implementation
Today, I will talk to you about how to understand the POJ 1986 java code implementation, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Package pro.yao10_16LCA;import java.util.*;import java.io.*;/**7 61 6 13 E6 3 9 E3 5 7 S4 13 N 2 4 20 W4 7 2 S31 61 42 6 * @ author XASW * * / public class Main {static int T, N, Q, S, E, W, vis, D, first, static Node [] nodes; static List arrayV [] Public static void main (String [] args) throws Exception {BufferedReader bf = new BufferedReader (new InputStreamReader (System.in)); StringTokenizer st = new StringTokenizer (bf.readLine ()); N = Integer.valueOf (st.nextToken ()); Q = Integer.valueOf (st.nextToken ()) ArrayV = new ArrayList [Niss1]; nodes = new Node [Quli2 + 2]; set = new int [Natur1]; vis = new int [Natur1]; D = new int [Numb1]; first = new int [Numb1]; for (int I = 0) I < arrayV [I] = new ArrayList (); set [I] = I; first [I] =-1;} for (int I = 0; I < Q * 2 + 2; iTunes +) {nodes [I] = new Node () } for (int I = 1; I