其实就会找出xy最小的一个,再判断奇偶就OK
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int x,y;
while(cin>>x>>y){
int t=x>y?y:x;
if(t%2==0)
printf("Malvika\n");
else
printf("Akshat\n");
}
}
A. Game With Sticks,布布扣,bubuko.com
原文地址:http://blog.csdn.net/youngyangyang04/article/details/38111045