Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
19937 2024-05-15 23:28:51 AHAMMED_99 Max Number C 1 ms 1536 kb Wrong Answer - 7
Test Cases
CPU Memory Verdict
1 0 ms 1536 kb Accepted
2 0 ms 1512 kb Accepted
3 0 ms 1448 kb Accepted
4 0 ms 1516 kb Accepted
5 0 ms 1520 kb Accepted
6 0 ms 1500 kb Accepted
7 1 ms 1520 kb Wrong Answer
Source Code
program.c
Download
  1. #include <stdio.h>
  2. int main() {
  3. int t;
  4. scanf("%d", &t);
  5. while (t--) {
  6. int i,j,k;
  7. scanf("%d %d %d",&i,&j,&k);
  8. int max=i; // Assuming the first number as maximum
  9. if (j>max) {
  10. max=j;}
  11. if (k>max) {
  12. max=k;}
  13. printf("%d",max);}
  14. return 0;
  15. }
  16.