Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17902 2024-04-24 05:13:25 ZubayearBinKhaled Max Number Java 0 ms 0 kb Compilation Error
Test Cases
CPU Memory Verdict
1 0 ms 0 kb Compilation Error
2 - - Skipped
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3. public class Test{
  4.  
  5. Scanner input = new Scanner(System.in);
  6. int testCases = input.nextInt();
  7. System.out.println(testCases);
  8.  
  9. while(testCases> 0){
  10. long a =input.nextInt();
  11. long b=input.nextInt();
  12. long c=input.nextInt();
  13.  
  14. if(a > b && a>c){
  15. System.out.print(a);
  16. }
  17. if(b>a && b>c){
  18. System.out.print(b);
  19. }
  20. if(c>a && c>b){
  21. System.out.print(c);
  22. }
  23. testCases--;
  24. }
  25.  
  26. }