33public class convention2 {
44
55 public static void main (String [] args ) throws IOException {
6- BufferedReader f = new BufferedReader (new FileReader ("convention2 .in" ));
6+ BufferedReader f = new BufferedReader (new FileReader ("2 .in" ));
77 StringTokenizer st ;
88 int N = Integer .parseInt (f .readLine ());
99 Map <cow ,Integer > senority = new HashMap <cow ,Integer >();
@@ -32,10 +32,11 @@ public int compare(cow arg0, cow arg1) {
3232 cow c2 ;
3333 boolean first =true ;
3434 for (int i = 0 ; i < time .size (); i ++) {
35+ System .out .println ("Completed " +i +" of " +time .size ()+" <- Value may change but N is " +N );
3536 if (theline .isEmpty ()) {
3637 tc = time .get (i );// Short for the cow
3738 }else {
38- System .out .println (tc .x +" " + tc .y +" " + theline .get (0 ).x +" " +theline .get (0 ).y );
39+ // System.out.println(tc.x +" " + tc.y +" "+ theline.get(0).x+" "+theline.get(0).y);
3940 c2 = theline .get (0 );
4041 boolean nodouble = c2 .equals (tc );
4142 if (nodouble ) {
@@ -46,10 +47,10 @@ public int compare(cow arg0, cow arg1) {
4647 }
4748
4849 ctime = tc .x + tc .y - c2 .x ;
49- System .out .println ("Achieved time of " +ctime );
50+ // System.out.println("Achieved time of "+ctime);
5051 if (ctime > mtime ) {
5152 if (!nodouble ) {
52- System .out .println ("New range" );
53+ // System.out.println("New range");
5354 mtime = ctime ;
5455 }
5556 }
@@ -78,7 +79,7 @@ public int compare(cow arg0, cow arg1) {
7879 if (i == 0 && first ) {
7980 //System.out.println(theline.remove(0));
8081 }
81- System .out .println (theline );
82+ // System.out.println(theline);
8283 first = false ;
8384 }
8485 //System.out.println(mtime);
0 commit comments