Please read the new rule regarding the restriction on the use of AI tools. ×
Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Csk's blog

By Csk, history, 4 years ago, In English

Question — https://www.spoj.com/problems/PARTY/ My Solution — https://ideone.com/5e2C5G

In my viewpoint, calculating the maximum value for party enjoyment is easy by using classical knapsack problem but when it comes to calculate the cost, not only its giving WA for cost but also it gives WA for maximum value for party enjoyment!

I used top down approach and please help me!

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it