Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16848 2024-04-19 10:48:52 sheikh_hossainn Max Number C 1 ms 1496 kb Accepted
Test Cases
CPU Memory Verdict
1 0 ms 1392 kb Accepted
2 0 ms 1392 kb Accepted
3 0 ms 1436 kb Accepted
4 0 ms 1388 kb Accepted
5 0 ms 1392 kb Accepted
6 0 ms 1384 kb Accepted
7 1 ms 1496 kb Accepted
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\n", a);
  15. }
  16. else if(b > a && b > c){
  17. printf("%d\n", b);
  18. }
  19. else{
  20. printf("%d\n", c);
  21. }
  22. }
  23. return 0;
  24. }
  25.