/*1.可选步数为1-m的连续整数,直接取模即可,SG(x) = x % (m+1);*/
#include <iostream>
using namespace std;
int main()
{
    int m,n,i;
    while(cin>>m>>n)
    {
        int x=m%(n+1);
        if(m<=n)
        {
            for(i=m;i<=n;i++)
            {
                if(i!=m)cout<<' ';
                cout<<i;
            }
            cout<<endl;
        }
        else if(!x)cout<<"none"<<endl;
        else cout<<x<<endl;
    }
    return 0;
}

results matching ""

    No results matching ""