Loading...
Submission
# When Author Problem Language CPU Memory
21039 2024-09-12 20:33:47 Prohor106 A Plus B Java 109 ms 42552 kb Accepted
Test Cases
# CPU Memory Points
1 109 ms 42516 kb 1 Accepted
2 106 ms 38872 kb 1 Accepted
3 105 ms 38792 kb 1 Accepted
4 107 ms 38724 kb 1 Accepted
5 107 ms 42552 kb 1 Accepted
6 106 ms 38544 kb 1 Accepted
Source Code
  1. import java.util.Scanner;
  2.  
  3. public class SumTwoIntegers {
  4. public static void main(String[] args) {
  5. // Create a Scanner object to read input
  6. Scanner scanner = new Scanner(System.in);
  7.  
  8. // Read the two integers A and B
  9. int A = scanner.nextInt();
  10. int B = scanner.nextInt();
  11.  
  12. // Compute the sum of A and B
  13. int sum = A + B;
  14.  
  15. // Print the result
  16. System.out.println(sum);
  17.  
  18. // Close the scanner
  19. scanner.close();
  20. }
  21. }