Loading...
Submission
# When Author Problem Language CPU Memory
5889 2022-08-20 11:50:48 ewu_battle22u_79 Max Number Java 96 ms 36760 kb Runtime Error - 1
Test Cases
# CPU Memory Points
1 96 ms 36760 kb 0 Runtime Error
2 0 ms 0 kb 0 Skipped
3 0 ms 0 kb 0 Skipped
4 0 ms 0 kb 0 Skipped
5 0 ms 0 kb 0 Skipped
6 0 ms 0 kb 0 Skipped
7 0 ms 0 kb 0 Skipped
Source Code
  1. package javaapplication30;
  2. import java.util.Scanner;
  3. public class JavaApplication30 {
  4. public static void main(String[] args) {
  5. int a,i;
  6. long b,c,d;
  7. Scanner input=new Scanner(System.in);
  8. a=input.nextInt();
  9. for(i=0;i<a;i++)
  10. {
  11. b=input.nextLong();
  12. c=input.nextLong();
  13. d=input.nextLong();
  14. if(b>=c && b>=d)
  15. {
  16. System.out.println(b);
  17. }
  18. else if(c>=b && c>=d)
  19. {
  20. System.out.println(c);
  21. }
  22. else if(d>=b && d>=c)
  23. {
  24. System.out.println(d);
  25. }
  26. }
  27. }
  28. }
  29.