标签:java amp output style problem john inpu game int
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 7944 Accepted Submission(s): 4738
1 #include<stdio.h> 2 int main() 3 { 4 int n,m; 5 while(scanf("%d%d",&m,&n)!=EOF) 6 { 7 if(m%(n+1)==0) 8 { 9 printf("none\n"); 10 continue; 11 } 12 if(m<=n) 13 { 14 printf("%d",m); 15 for(int i=m+1;i<=n;i++) 16 printf(" %d",i); 17 printf("\n"); 18 continue; 19 } 20 printf("%d\n",m%(n+1)); 21 } 22 return 0; 23 }
标签:java amp output style problem john inpu game int
原文地址:http://www.cnblogs.com/bofengyu/p/6783374.html