Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17947 2024-04-24 13:31:35 ewu_intra24u_69 Max Number Java 139 ms 44132 kb Wrong Answer - 7
Test Cases
CPU Memory Verdict
1 133 ms 40632 kb Accepted
2 137 ms 42340 kb Accepted
3 136 ms 40584 kb Accepted
4 138 ms 40780 kb Accepted
5 135 ms 40564 kb Accepted
6 134 ms 40688 kb Accepted
7 139 ms 44132 kb Wrong Answer
Source Code
program.java
Download
  1. import java.util.*;
  2.  
  3. public class Imam {
  4.  
  5. public static void main(String[] args) {
  6. Scanner sc=new Scanner(System.in);
  7. int t=sc.nextInt();
  8. int[] arr=new int[3];
  9. int max,l=arr.length;
  10.  
  11. for(int j=0;j<l;j++){
  12. arr[j]=sc.nextInt();
  13.  
  14.  
  15. }
  16. max=arr[0];
  17. for(int i=1;i<l;i++){
  18. if(max<arr[i]){
  19. max=arr[i];
  20. }
  21. }
  22. System.out.println(""+max);
  23.  
  24. }
  25.  
  26. }
  27.