Skip to content

Instantly share code, notes, and snippets.

@MohamedTaha98
Created June 4, 2017 16:46
Show Gist options
  • Save MohamedTaha98/46e52a0d0e90e20fa980bbb3f7813354 to your computer and use it in GitHub Desktop.
Save MohamedTaha98/46e52a0d0e90e20fa980bbb3f7813354 to your computer and use it in GitHub Desktop.
Problem Solving
#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