Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
Main.java:6: error: class SumAB is public, should be declared in a file named SumAB.java public class SumAB { ^ 1 error |
||
#2 |
Error de compilación
Main.java:6: error: class SumAB is public, should be declared in a file named SumAB.java public class SumAB { ^ 1 error |
||
#3 |
Error de compilación
Main.java:6: error: class SumAB is public, should be declared in a file named SumAB.java public class SumAB { ^ 1 error |
||
#4 |
Error de compilación
Main.java:6: error: class SumAB is public, should be declared in a file named SumAB.java public class SumAB { ^ 1 error |
||
#5 |
Error de compilación
Main.java:6: error: class SumAB is public, should be declared in a file named SumAB.java public class SumAB { ^ 1 error |
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class SumAB { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; st = new StringTokenizer(br.readLine()); System.out.println(Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken())); } }