标签:
Description
Input
Output
Sample Input
Sample Output
1 #include<cstdio> 2 int main() 3 { 4 int n,m; 5 while(scanf("%d%d",&m,&n)!=EOF) 6 { 7 if(m<=n) 8 { 9 printf("%d",m); 10 for(int i=m+1;i<=n;i++) 11 { 12 printf(" %d",i); 13 } 14 printf("\n"); 15 } 16 else 17 { 18 int ans; 19 ans=m%(n+1); 20 if(ans==0) 21 { 22 printf("none\n"); 23 } 24 else if(ans<n+1) 25 printf("%d\n",ans); 26 } 27 } 28 return 0; 29 }
标签:
原文地址:http://www.cnblogs.com/forwin/p/4890310.html