Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17909 2024-04-24 05:22:38 ZubayearBinKhaled Max Number Java 200 ms 43356 kb Accepted
Test Cases
CPU Memory Verdict
1 104 ms 42016 kb Accepted
2 103 ms 38856 kb Accepted
3 103 ms 38600 kb Accepted
4 104 ms 38832 kb Accepted
5 102 ms 38584 kb Accepted
6 107 ms 38448 kb Accepted
7 200 ms 43356 kb Accepted
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3. public class Test{
  4. public static void main (String[] args){
  5. long x;
  6. Scanner input = new Scanner(System.in);
  7. x = input.nextInt();
  8.  
  9.  
  10. while(x> 0){
  11. long a =input.nextInt();
  12. long b=input.nextInt();
  13. long c=input.nextInt();
  14.  
  15. if(a > b && a>c){
  16. System.out.println(a);
  17. }
  18. if(b>a && b>c){
  19. System.out.println(b);
  20. }
  21. if(c>a && c>b){
  22. System.out.println(c);
  23. }
  24. x--;
  25. }
  26. }
  27. }