Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
19718 2024-04-24 21:34:48 Jabir85 Max Number C 1 ms 1532 kb Accepted
Test Cases
CPU Memory Verdict
1 0 ms 1508 kb Accepted
2 0 ms 1504 kb Accepted
3 0 ms 1504 kb Accepted
4 0 ms 1532 kb Accepted
5 0 ms 1504 kb Accepted
6 0 ms 1508 kb Accepted
7 1 ms 1404 kb Accepted
Source Code
program.c
Download
  1. #include<stdio.h>
  2. int main ()
  3. {
  4. int n;
  5. scanf("%d", &n);
  6. for(int i = 1; i<=n; i++){
  7. int a, b, c;
  8. scanf("%d%d%d", &a, &b, &c);
  9. if(a> b && a>c)
  10. printf("%d\n", a);
  11.  
  12. else if(b> a && b>c)
  13. printf("%d\n", b);
  14.  
  15. else
  16. printf("%d\n", c);
  17. }
  18. }