#include<cstdio>
unsigned long long a[30001],b[]={5,10,20,50,100,200,500,1000,2000,5000,10000};
main()
{
unsigned long long i,j,d;
double c;
a[0]=1;
for(i=1;i<30001;i++)
a[i]=0;
for(i=0;i<11;i++)
for(j=b[i];j<30001;j++)
a[j]+=a[j-b[i]];
while(scanf("%lf",&c)==1)
{
if(c==0)
break;
d=c*100;
printf("%6.2lf%17I64d\n",c,a[d]);
}
}
幫個忙阿
我是到快瘋了= =
他都說有錯 但我是都沒錯