#include int a[100000]={0}; int main() { int i,n; for (i=0,n=3;i<100000;n++) if (n%3==0||n%5==0) a[i++]=n; while( scanf(" %d",&n)!=EOF) printf(" %d/n",a[n-1]); return 0; }
ZOJ 2829 Beautiful Number
最新推荐文章于 2018-03-20 17:00:15 发布
#include int a[100000]={0}; int main() { int i,n; for (i=0,n=3;i<100000;n++) if (n%3==0||n%5==0) a[i++]=n; while( scanf(" %d",&n)!=EOF) printf(" %d/n",a[n-1]); return 0; }