Loading...
Submission
# When Author Problem Language CPU Memory
1714 2021-07-09 23:19:18 ewu_kick_off_user_32 Max Number C++ 11 4 ms 3448 kb Wrong Answer - 7
Test Cases
# CPU Memory Points
1 4 ms 3388 kb 1 Accepted
2 4 ms 3448 kb 1 Accepted
3 4 ms 3428 kb 1 Accepted
4 4 ms 3276 kb 1 Accepted
5 4 ms 3420 kb 1 Accepted
6 4 ms 3208 kb 1 Accepted
7 4 ms 3312 kb 0 Wrong Answer
Source Code
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <math.h>
  4. #include <vector>
  5. typedef long long ll;
  6. typedef long long int lli;
  7. typedef long double ld;
  8. int mina = 0x3f3f3f3f;
  9. int maxa=0;
  10. long long int maxi=0;
  11. int arra[10000000];
  12.  
  13. using namespace std;
  14. int main()
  15. {
  16. /* #ifndef Navid
  17.   freopen("input.txt","r",stdin);
  18.   freopen("output.txt","w",stdout);
  19.   #endif*/
  20. ios_base::sync_with_stdio(false);
  21. cin.tie(NULL); cout.tie(NULL);
  22. //Starting Main Code
  23. lli n;
  24. cin>>n;
  25. while(n--){
  26. long long int array[3];
  27. for(lli i=0;i<3;i++){
  28. lli x;
  29. cin>>x;
  30. maxi=max(x,maxi);
  31. }
  32. }
  33.  
  34. cout<<maxi<<endl;
  35.  
  36. return 0;
  37. }