Loading...
Submission
# When Author Problem Language CPU Memory
19942 2024-05-15 23:44:22 AHAMMED_99 Max Number C 1 ms 1520 kb Wrong Answer - 7
Test Cases
# CPU Memory Points
1 0 ms 1512 kb 1 Accepted
2 0 ms 1508 kb 1 Accepted
3 0 ms 1380 kb 1 Accepted
4 0 ms 1372 kb 1 Accepted
5 0 ms 1520 kb 1 Accepted
6 0 ms 1484 kb 1 Accepted
7 1 ms 1508 kb 0 Wrong Answer
Source Code
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int tests;
  5. scanf("%d", &tests);
  6.  
  7. while (tests--) {
  8. int num1, num2, num3;
  9. scanf("%d %d %d", &num1, &num2, &num3);
  10. int max = num1; // Assume the first number as maximum
  11. if (num2 > max) {
  12. max = num2;}
  13. if (num3 > max) {
  14. max = num3;}
  15. printf("%d", max);
  16. }
  17. return 0;
  18. }
  19.