// CERC 2012 // Problem B: Who wants to live forever? // O(n log n) solution // Author: Lech Duraj import java.util.Scanner; import java.util.ArrayList; public class B { public static Boolean go(ArrayList A) { int n = A.size(); Boolean allzero = true; for(int i=0; i even = new ArrayList(); ArrayList odd = new ArrayList(); for(int i=1; i0) { TT--; String s = in.nextLine(); int n = s.length(); ArrayList A = new ArrayList(); for(int i=0; i