Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16987 2024-04-23 17:17:57 ewu_intra24_mock_u_68 Max Number C++ 17 1 ms 3428 kb Wrong Answer - 7
Test Cases
CPU Memory Verdict
1 1 ms 3320 kb Accepted
2 1 ms 3428 kb Accepted
3 1 ms 3380 kb Accepted
4 1 ms 3252 kb Accepted
5 1 ms 3376 kb Accepted
6 1 ms 3388 kb Accepted
7 1 ms 3376 kb Wrong Answer
Source Code
program.cpp
Download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. int main()
  6. {
  7. int t;
  8.  
  9. cin>>t;
  10. int a,b,c;
  11. cin>>a>>b>>c;
  12. while (t--)
  13. {
  14. if (a>b && a>c)
  15. cout <<a;
  16. else if (b>a&&b>c)
  17. cout<<b;
  18. else cout<<c;
  19.  
  20. }
  21. }
  22.  
  23.  
  24.