Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

mahim007's blog

By mahim007, history, 11 years ago, In English

pls give me some critical test cases and help me to find out what is going wrong :( :( :( it is a simple 0-1 knapsack problem.

problem link=>uva 11003(Boxes)

my code=>codepad link

  • Vote: I like it
  • -6
  • Vote: I do not like it

| Write comment?
»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Try "%I64d" instead of "%lld". It might make a difference, but don't count on it. (Note: I didn't review your code thoroughly.)