Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16845 2024-04-19 10:33:57 sheikh_hossainn Max Number C 1 ms 1496 kb Wrong Answer - 7
Test Cases
CPU Memory Verdict
1 0 ms 1472 kb Accepted
2 0 ms 1484 kb Accepted
3 0 ms 1496 kb Accepted
4 0 ms 1340 kb Accepted
5 0 ms 1332 kb Accepted
6 0 ms 1324 kb Accepted
7 1 ms 1464 kb Wrong Answer
Source Code
program.c
Download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int T;
  7. int a, b, c;
  8. scanf("%d", &T);
  9.  
  10. while(T--){
  11. scanf("%d%d%d", &a, &b, &c);
  12.  
  13. if(a > b && a > c){
  14. printf("%d", a);
  15. }
  16. else if(b > a && b > c){
  17. printf("%d", b);
  18. }
  19. else{
  20. printf("%d", c);
  21. }
  22. }
  23. return 0;
  24. }
  25.