+ 4

Can someone suggest a solution other than dp

http://www.spoj.com/problems/ALCATRAZ2/ I am trying to solve it using brute force but the solution gives tle

13th May 2017, 2:46 PM
Anon
Anon - avatar
4 Respostas
+ 2
The aim is to maximise the money contributed by members, with constraint that if two people are having a cold war then only one will go. so need to use this for calculating the money
16th May 2017, 11:39 AM
Anon
Anon - avatar
+ 1
Hi, Your problem was very interesting but not easy to code. So i put an example here (code is ruby) : https://code.sololearn.com/c6H1SaTfwrK9/# Sorry, my comments are in french but it's easy to read the code ;-)
18th May 2017, 5:24 PM
MBZH31
MBZH31 - avatar
+ 1
hi, thanks! I would go through it :)
18th May 2017, 5:35 PM
Anon
Anon - avatar
0
Hi, Can you explain more the aim to solve ? thank you.
16th May 2017, 11:34 AM
MBZH31
MBZH31 - avatar