Search found 1 match

by viharvera
Fri Dec 10, 2010 1:02 pm
Forum: Volume 6 (600-699)
Topic: 674 - Coin Change
Replies: 77
Views: 25970

Re: 674 - Coin Change

Hi! I`m new to uva, so sorry for the newbie question. I have the following code: #include<iostream> using namespace std; int main(int argc, char* argv[]) { cout.setf(ios::fixed); cout.precision(3); int coins[]={1,5,10,25,50}; long dp[5][7594]={{0}}; for(int c=0;c<5;++c){ dp[c][0]=1; for(int i=1;i<74...

Go to advanced search