Submission
Id | When | Author | Problem | Language | CPU | Memory | Verdict |
---|---|---|---|---|---|---|---|
17932 | 2024-04-24 13:20:13 | ewu_intra24u_13 | Max Number | C++ 17 | 4 ms | 3420 kb | Accepted |
Test Cases
CPU | Memory | Verdict | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 1 ms | 3372 kb | Accepted | ||||||||
2 | 1 ms | 3420 kb | Accepted | ||||||||
3 | 1 ms | 3324 kb | Accepted | ||||||||
4 | 1 ms | 3252 kb | Accepted | ||||||||
5 | 1 ms | 3324 kb | Accepted | ||||||||
6 | 1 ms | 3248 kb | Accepted | ||||||||
7 | 4 ms | 3412 kb | Accepted | ||||||||
Source Code
program.cpp
#include <bits/stdc++.h> using namespace std; int main() { int t; cin>> t ; while(t--){ int a, b, c; cin >> a >> b >> c; if (a >= b) { if (a >= c) { cout << a << endl; } else { cout<< c << endl; } } else { if (b >= c) { cout << b << endl; } else { cout << c << endl; } } } return 0; }