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
#include<bits/stdc++.h> using namespace std; int main (){ int n; cin>>n; int arr[3]; for(int i=1;i<=n;i++){ int m=INT_MIN; for(int j=0;j<3;j++){ cin >>arr[j]; if(arr[j]>m) m=arr[j]; } cout<<m; } return 0; }