Created
June 4, 2017 16:46
-
-
Save MohamedTaha98/46e52a0d0e90e20fa980bbb3f7813354 to your computer and use it in GitHub Desktop.
Problem Solving
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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
int n, m, moves; | |
cin >> n >> m; | |
if (n <= m) | |
{ | |
moves = n; | |
} | |
else if (n > m) | |
{ | |
moves = m; | |
} | |
if (moves % 2 == 0) | |
{ | |
cout << "Malvika"; | |
} | |
else if (moves % 2 != 0) | |
{ | |
cout << "Akshat"; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment