n,x,y=eval(input())
t=0
while n>0:
if (t<x and t<y):
t=t+1
elif (t%x==0 and t%y!=0):
n=n-1
t=t+1
if n<=0:
print('xiaoming')
elif (t%y==0 and t%x!=0):
n=n-1
t=t+1
if n<=0:
print('xiaohong')
elif (t%x==0 and t%y==0):
n=n-2
t=t+1
if n<=0:
print('both')
else:
t=t+1
打怪游戏~
最新推荐文章于 2024-09-17 23:15:58 发布