Submission
Id | When | Author | Problem | Language | CPU | Memory | Verdict |
---|---|---|---|---|---|---|---|
17939 | 2024-04-24 13:23:26 | ewu_intra24u_195 | Max Number | C++ 17 | 4 ms | 3412 kb | Accepted |
Test Cases
CPU | Memory | Verdict | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1 ms | 3316 kb | Accepted | ||||||||
2 | 1 ms | 3312 kb | Accepted | ||||||||
3 | 1 ms | 3376 kb | Accepted | ||||||||
4 | 1 ms | 3312 kb | Accepted | ||||||||
5 | 1 ms | 3412 kb | Accepted | ||||||||
6 | 1 ms | 3252 kb | Accepted | ||||||||
7 | 4 ms | 3332 kb | Accepted | ||||||||
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; } cout << "\n"; } }