Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17904 2024-04-24 05:16:45 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. import java.lang;
  3.  
  4. public class Test{
  5. public static void main (String[] args){
  6. int testcases;
  7. Scanner input = new Scanner(System.in);
  8. testCases = input.nextInt();
  9. System.out.println(testCases);
  10.  
  11. while(testCases> 0){
  12. long a =input.nextInt();
  13. long b=input.nextInt();
  14. long c=input.nextInt();
  15.  
  16. if(a > b && a>c){
  17. System.out.print(a);
  18. }
  19. if(b>a && b>c){
  20. System.out.print(b);
  21. }
  22. if(c>a && c>b){
  23. System.out.print(c);
  24. }
  25. testCases--;
  26. }
  27. }
  28. }