Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17903 2024-04-24 05:15:43 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. public static void main (String[] args){
  5. int testcases;
  6. Scanner input = new Scanner(System.in);
  7. testCases = input.nextInt();
  8. System.out.println(testCases);
  9.  
  10. while(testCases> 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.print(a);
  17. }
  18. if(b>a && b>c){
  19. System.out.print(b);
  20. }
  21. if(c>a && c>b){
  22. System.out.print(c);
  23. }
  24. testCases--;
  25. }
  26. }
  27. }