Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.162 s | 16 KBi |
#2 |
Correcto
|
0.146 s | 15 KBi |
#3 |
Correcto
|
0.182 s | 13 KBi |
#4 |
Correcto
|
0.151 s | 15 KBi |
#5 |
Correcto
|
0.172 s | 16 KBi |
import java.util.Scanner; public class Main { public static void main(String[] args) { Nums nums = readNumsFromStdin(); System.out.println(nums.a + nums.b); } private static Nums readNumsFromStdin() { Scanner in = new Scanner(System.in); return new Nums(in.nextInt(), in.nextInt()); } private static class Nums { int a; int b; public Nums(int a, int b) { this.a = a; this.b = b; } } }