Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
18030 2024-04-24 13:43:49 ewu_intra24u_48 Max Number C++ 17 1 ms 3324 kb Wrong Answer - 1
Test Cases
CPU Memory Verdict
1 1 ms 3324 kb Wrong Answer
2 - - Skipped
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
Source Code
program.cpp
Download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. cin>>t;
  7. while(t--)
  8. {
  9. int arr[3];
  10. int maxx=arr[0];
  11. for(int i=0;i<3;i++)
  12. {
  13. cin>>arr[i];
  14. }
  15. for(int i=0;i<3;i++)
  16. {
  17. if(arr[i]>maxx)
  18. {
  19. maxx=arr[i];
  20. }
  21. }
  22. cout<<maxx<<endl;
  23. }
  24. return 0;
  25. }
  26.