Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16977 2024-04-23 17:11:58 ewu_intra24_mock_u_131 Max Number C++ 17 4 ms 3384 kb Wrong Answer - 7
Test Cases
CPU Memory Verdict
1 1 ms 3308 kb Accepted
2 1 ms 3260 kb Accepted
3 1 ms 3384 kb Accepted
4 1 ms 3284 kb Accepted
5 1 ms 3244 kb Accepted
6 1 ms 3316 kb Accepted
7 4 ms 3316 kb Wrong Answer
Source Code
program.cpp
Download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main (){
  4.  
  5. int n;
  6. cin>>n;
  7. int arr[3];
  8. for(int i=1;i<=n;i++){
  9. int m=INT_MIN;
  10. for(int j=0;j<3;j++){
  11. cin >>arr[j];
  12. if(arr[j]>m)
  13. m=arr[j];
  14. }
  15. cout<<m;
  16. }
  17.  
  18. return 0;
  19. }
  20.