Loading...
Submission
# When Author Problem Language CPU Memory
19954 2024-05-16 20:59:45 AHAMMED_99 Max Number C 1 ms 1532 kb Wrong Answer - 7
Test Cases
# CPU Memory Points
1 0 ms 1364 kb 1 Accepted
2 0 ms 1520 kb 1 Accepted
3 0 ms 1532 kb 1 Accepted
4 0 ms 1432 kb 1 Accepted
5 0 ms 1524 kb 1 Accepted
6 0 ms 1364 kb 1 Accepted
7 1 ms 1496 kb 0 Wrong Answer
Source Code
  1. #include <stdio.h>
  2. int main() {
  3. int t,num1,num2,num3,max;
  4. scanf("%d", &t);
  5.  
  6. while (t--) {
  7. scanf("%d %d %d", &num1, &num2, &num3);
  8. max = num1; // Assume the first number as maximum
  9. if (num2 > max) {
  10. max = num2;}
  11. if (num3 > max) {
  12. max = num3;}
  13. printf("%d", max);
  14. }
  15. return 0;
  16. }
  17.