Submission
Id | When | Author | Problem | Language | CPU | Memory | Verdict |
---|---|---|---|---|---|---|---|
16987 | 2024-04-23 17:17:57 | ewu_intra24_mock_u_68 | Max Number | C++ 17 | 1 ms | 3428 kb | Wrong Answer - 7 |
Test Cases
CPU | Memory | Verdict | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1 ms | 3320 kb | Accepted | ||||||||
2 | 1 ms | 3428 kb | Accepted | ||||||||
3 | 1 ms | 3380 kb | Accepted | ||||||||
4 | 1 ms | 3252 kb | Accepted | ||||||||
5 | 1 ms | 3376 kb | Accepted | ||||||||
6 | 1 ms | 3388 kb | Accepted | ||||||||
7 | 1 ms | 3376 kb | Wrong Answer | ||||||||
Source Code
program.cpp
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; int a,b,c; cin>>a>>b>>c; while (t--) { if (a>b && a>c) cout <<a; else if (b>a&&b>c) cout<<b; else cout<<c; } }