fork(1) download
  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(1LL*B*C, 1LL*A*B, 1LL*A*C);
  23. }
  24. cout << result << endl;
  25.  
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
0