Loading...
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
Download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int t;
  7. cin>> t ;
  8. while(t--){
  9.  
  10. int a, b, c;
  11. cin >> a >> b >> c;
  12.  
  13. if (a >= b) {
  14.  
  15. if (a >= c) {
  16. cout << a << endl;
  17. }
  18. else {
  19. cout<< c << endl;
  20. }
  21. }
  22. else {
  23. if (b >= c) {
  24. cout << b << endl;
  25. }
  26. else {
  27. cout << c << endl;
  28. }
  29. }
  30. }
  31. return 0;
  32.  
  33. }
  34.  
  35.