Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include <stdio.h> 2 int seq[4]={153,370,371,407}; 3 int main() 4 { 5 int m,n,i,f; 6 while (scanf("%d%d",&m,&n)!=EOF) 7 { 8 f=0; 9 for (i=0;i<4;i++) 10 { 11 if(m<=seq[i]&&n>=seq[i]) 12 { 13 if(f==0) printf("%d",seq[i]); 14 else printf(" %d",seq[i]); 15 f=1; 16 } 17 18 } 19 if(f==0) printf("no"); 20 printf("\n"); 21 } 22 return 0; 23 }
本文转自ZH奶酪博客园博客,原文链接:http://www.cnblogs.com/CheeseZH/archive/2012/05/25/2518759.html,如需转载请自行联系原作者