Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16990 2024-04-23 17:19:48 ewu_intra24_mock_u_13 Max Number C++ 17 4 ms 3412 kb Accepted
Test Cases
CPU Memory Verdict
1 1 ms 3312 kb Accepted
2 1 ms 3252 kb Accepted
3 1 ms 3344 kb Accepted
4 1 ms 3368 kb Accepted
5 1 ms 3324 kb Accepted
6 1 ms 3412 kb Accepted
7 4 ms 3372 kb Accepted
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. int arr[3];
  8. while(t--){
  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.