Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16979 2024-04-23 17:13:00 ewu_intra24_mock_u_131 Max Number C++ 17 0 ms 0 kb Compilation Error
Test Cases
CPU Memory Verdict
1 0 ms 0 kb Compilation Error
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 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<<<endl;
  16. }
  17.  
  18. return 0;
  19. }
  20.