mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26a72e347d
2100-2199
26 lines
455 B
C++
26 lines
455 B
C++
#include <stdio.h>
|
|
int main()
|
|
{
|
|
int n,m,i;
|
|
while(scanf("%d%d",&n,&m)!=EOF)
|
|
{
|
|
if(n<=m)
|
|
{
|
|
for(i=n;i<m;i++)
|
|
{
|
|
printf("%d ",i);
|
|
}
|
|
printf("%d\n",i);
|
|
}
|
|
else
|
|
{
|
|
if(n%(m+1))
|
|
{
|
|
printf("%d\n",n%(m+1));
|
|
}
|
|
else
|
|
printf("none\n");
|
|
}
|
|
}
|
|
}
|