public class Main {
public static void main(String[] args) throws Exception {
java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));
String s;
while (!(s=r.readLine()).startsWith("42")) System.out.println(s);
}
}
Can anyone help me with the optimization of this code..it takes 177 M and 0.30 time
And the time here is noted in seconds,milliseconds..?