Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17878 2024-04-24 03:22:29 dnt Max Number Java 199 ms 46716 kb Accepted
Test Cases
CPU Memory Verdict
1 106 ms 38600 kb Accepted
2 104 ms 42496 kb Accepted
3 107 ms 38348 kb Accepted
4 102 ms 38508 kb Accepted
5 106 ms 40912 kb Accepted
6 103 ms 38940 kb Accepted
7 199 ms 46716 kb Accepted
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3.  
  4. public class CompetitiveExam {
  5.  
  6.  
  7. public static void main(String[] args) {
  8. // TODO code application logic here
  9. Scanner sc = new Scanner(System.in);
  10. int test=sc.nextInt();
  11. for (int i = 0; i < test; i++) {
  12. int a = sc.nextInt();
  13. int b = sc.nextInt();
  14. int c = sc.nextInt();
  15. int max =Math.max(a, Math.max(b, c));
  16. System.out.println(max);
  17. }
  18.  
  19. }
  20.  
  21. }
  22.