█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 951

Problema 0x78 - Suma de 2 números

  • Autor: aebernalmunoz
  • Fecha: 2020-10-04 22:25:07 UTC (Hace más de 3 años)
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

                    
Puntos totales: 0 / 100

Código

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()));

	}
}