Loading...
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
Download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. long long x, y, z;
  7. int n;
  8. cin >> n;
  9. while (n--){
  10. cin >> x >> y >> z;
  11.  
  12. if (x > y && x > z){
  13. cout << x;
  14. }
  15. else if (y > x && y > z){
  16. cout << y;
  17. }
  18. else if (z > x && z > y){
  19. cout << z;
  20. }
  21. }
  22. }