Created
October 23, 2017 20:19
-
-
Save ewmson/60408a2d967adb00d321c8afc0365f35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main() { | |
int a, b; | |
scanf("%d%d", &a, &b); | |
if (a == 0 && b == 0) { | |
printf("Not a moose\n"); | |
} else if (a == b) { | |
printf("Even %d\n", 2*a); | |
} else { | |
printf("Odd %d\n", 2*max(a, b)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment