Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17906 2024-04-24 05:18:25 ZubayearBinKhaled Max Number Java 103 ms 38444 kb Wrong Answer - 1
Test Cases
CPU Memory Verdict
1 103 ms 38444 kb Wrong Answer
2 - - Skipped
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class Test{
  5. public static void main (String[] args){
  6. int x;
  7. Scanner input = new Scanner(System.in);
  8. x = input.nextInt();
  9. System.out.println(x);
  10.  
  11. while(x> 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. x--;
  26. }
  27. }
  28. }