Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- unsigned long long MinAux(unsigned long long A, unsigned long long B){
- if(A>=B) return B;
- return A;
- }
- unsigned long long Min(unsigned long long A, unsigned long long B, unsigned long long C){
- return MinAux(A,MinAux(B,C));
- }
- int main()
- {
- unsigned long long result;
- int A, B, C;
- cin >> A >> B >> C;
- if((A%2==0)||(B%2==0)||(C%2==0)) result = 0;
- else {
- result = Min(B*C, A*B, A*C);
- }
- cout << result << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement