Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16890 2024-04-20 21:23:08 01793099167 Max Number C 1 ms 1488 kb Accepted
Test Cases
CPU Memory Verdict
1 0 ms 1476 kb Accepted
2 0 ms 1472 kb Accepted
3 0 ms 1416 kb Accepted
4 0 ms 1484 kb Accepted
5 0 ms 1404 kb Accepted
6 0 ms 1448 kb Accepted
7 1 ms 1488 kb Accepted
Source Code
program.c
Download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num_test_cases;
  5. scanf("%d", &num_test_cases);
  6.  
  7. while (num_test_cases--) {
  8. int a, b, c;
  9. scanf("%d %d %d", &a, &b, &c);
  10.  
  11. int max = a;
  12. if (b > max) {
  13. max = b;
  14. }
  15. if (c > max) {
  16. max = c;
  17. }
  18. printf("%d\n", max);
  19. }
  20.  
  21. return 0;
  22. }
  23.