/** * This class can take a variable number of parameters on the command * line. Program execution begins with the main() method. The class * constructor is not invoked unless an object of type 'Class1' * created in the main() method. */ import java.io.*; import java.util.StringTokenizer; public class proba { static boolean [][] problem; static int [] num; int [] cat; /** * The main entry point for the application. * * @param args Array of parameters passed to the application * via the command line. */ public static void main (String[] args)throws IOException { BufferedReader in=new BufferedReader(new FileReader("proba.in")); PrintWriter out=new PrintWriter(new FileWriter("proba.out")); StringTokenizer token; int n=Integer.parseInt(in.readLine()); int M,N; for (int i=0;i=depth)continue; if( ended(state[s])){ done=true; break; } } }while(s>=0); //} } //output for data set out.print("Data Set "+(i+1)+":"); for (int l=1;l<=s;l++) out.print(" "+ (char)('A'+path[l])); out.println(); out.println(); } out.flush(); out.close(); } static boolean[] or(boolean[]a, boolean[]b){ int x=a.length; boolean ans[]=new boolean[x]; for(int y=0;y