Search found 1 match

by hossam yosef
Fri Aug 31, 2012 1:21 pm
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 22809

Re: 10130 - SuperSales

TLE... can anyone help me :@ code: #include <iostream> #include <string> #include <climits> #include <algorithm> using namespace std; int weight[1000+10]; int prize[1000+10]; int dp[1000+10][40]; int n, res; int ww, num; int maX(int index, int w, int p) { if(index == n) { if(w <= ww) return dp[index...

Go to advanced search