Submission
Id | When | Author | Problem | Language | CPU | Memory | Verdict |
---|---|---|---|---|---|---|---|
17935 | 2024-04-24 13:22:05 | ewu_intra24u_195 | Max Number | C++ 17 | 4 ms | 3424 kb | Wrong Answer - 7 |
Test Cases
CPU | Memory | Verdict | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1 ms | 3424 kb | Accepted | ||||||||
2 | 1 ms | 3376 kb | Accepted | ||||||||
3 | 1 ms | 3380 kb | Accepted | ||||||||
4 | 1 ms | 3296 kb | Accepted | ||||||||
5 | 1 ms | 3376 kb | Accepted | ||||||||
6 | 1 ms | 3332 kb | Accepted | ||||||||
7 | 4 ms | 3380 kb | Wrong Answer | ||||||||
Source Code
program.cpp
#include <bits/stdc++.h> using namespace std; int main() { long long x, y, z; int n; cin >> n; while (n--){ cin >> x >> y >> z; if (x > y && x > z){ cout << x; } else if (y > x && y > z){ cout << y; } else if (z > x && z > y){ cout << z; } } }