i dont no whether my algorithm is right. for higher numbers it goes wrong i guess. so can some one helpme.
thanks
#include<iostream>
#include<cstdio>
using namespace std;
unsigned long long a[6001][11]={0};int limit;
void dollar()
{int i,j,d[11]={1,2,4,10,20,40,100,200,400,1000,2000};
for(i ...