Search found 2 matches

by shankar
Thu Aug 16, 2007 8:11 pm
Forum: Volume 102 (10200-10299)
Topic: 10201 - Adventures in Moving - Part IV
Replies: 23
Views: 14901

Can someone tell me about the greedy approach... if possible larry can u explain the greedy approach....

Thank U :)
by shankar
Thu Jun 07, 2007 4:16 pm
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 50891

help 147WA... i cant find the mistake

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 ...

Go to advanced search