Advertisement
Guest User

Untitled

a guest
Sep 4th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. unsigned long long MinAux(unsigned long long A, unsigned long long B){
  6.     if(A>=B) return B;
  7.     return A;
  8. }
  9.  
  10. unsigned long long Min(unsigned long long A, unsigned long long B, unsigned long long C){
  11.     return MinAux(A,MinAux(B,C));
  12. }
  13.  
  14. int main()
  15. {
  16.     unsigned long long result;
  17.     int A, B, C;
  18.     cin >> A >> B >> C;
  19.  
  20.     if((A%2==0)||(B%2==0)||(C%2==0)) result = 0;
  21.     else {
  22.         result = Min(B*C, A*B, A*C);
  23.     }
  24.     cout << result << endl;
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement