Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17907 2024-04-24 05:19:22 ZubayearBinKhaled Max Number Java 191 ms 45152 kb Wrong Answer - 7
Test Cases
CPU Memory Verdict
1 102 ms 38580 kb Accepted
2 108 ms 38504 kb Accepted
3 105 ms 42224 kb Accepted
4 106 ms 42320 kb Accepted
5 105 ms 42572 kb Accepted
6 102 ms 38836 kb Accepted
7 191 ms 45152 kb Wrong Answer
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3. public class Test{
  4. public static void main (String[] args){
  5. int 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.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. x--;
  25. }
  26. }
  27. }