Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
17866 2024-04-24 02:53:29 ewu_intra24_mock_u_84 Max Number C 1 ms 1548 kb Accepted
Test Cases
CPU Memory Verdict
1 0 ms 1548 kb Accepted
2 0 ms 1440 kb Accepted
3 0 ms 1524 kb Accepted
4 0 ms 1508 kb Accepted
5 0 ms 1452 kb Accepted
6 0 ms 1548 kb Accepted
7 1 ms 1536 kb Accepted
Source Code
program.c
Download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int n, x, y, z;
  6. scanf("%d",&n);
  7. if (1<=n && n<=1000000000000000000){
  8. for(int i = 1; i<=n;i++){
  9. scanf("%d %d %d",&x, &y, &z);
  10. if(x>y && x>z)
  11. printf("%d\n",x);
  12. else if(x<y && z<y)
  13. printf("%d\n",y);
  14. else if(z>y && z>x)
  15. printf("%d\n",z);
  16. else printf("x, y, z are equal\n");
  17. }
  18.  
  19. }
  20. else
  21. printf("Error\n");
  22. return 0;
  23. }
  24.