标签:acm 巴什博弈 public sale hdu2149
4 2 3 2 3 5
1 none 3 4 5
/**************************************
***************************************
* Author:Tree *
*From :http://blog.csdn.net/lttree *
* Title : Public Sale *
*Source: hdu 2149 *
* Hint : 巴什博弈 *
***************************************
**************************************/
#include <stdio.h>
int main()
{
int i,m,n;
while( scanf("%d%d",&m,&n)!=EOF )
{
if( m%(n+1)==0 ) printf("none\n");
else if( m>n ) printf("%d\n",m%(n+1));
else
{
for(i=m;i<n;++i)
printf("%d ",i);
printf("%d\n",n);
}
}
return 0;
}标签:acm 巴什博弈 public sale hdu2149
原文地址:http://blog.csdn.net/lttree/article/details/24839295