题目链接:Codeforces 451A Game With Sticks
题目大意:给出n,m,表示有n根水平的木棍,m根竖直的木棍,每次选取一个交点,取掉相应的两根木棍,直到不存在交点位置。
解题思路:水题,直接判断min(n,m)为奇数还是偶数。
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int main () {
int n, m;
scanf("%d%d", &n, &m);
int x = min(n, m);
printf("%s\n", x&1? "Akshat" : "Malvika");
return 0;
}