cypher1554R wrote:That's it.. I have no idea what you're talking about or how to do it. I give up.
And JEEEZ... I was just trying to be humorous with my comments. The way you respond, is like you're cold dead serious about it. The reason I try these challenges is just to get some steam off. I don't care if I get it right or wrong. If it's wrong, you don't have to be douche about it, just say it's wrong..
komrade..
sorry, i had a rough night last night. i was working on a big project. a appologize guys. sometimes when i cant get my own projects to work i become a little bitch. im sorry.
okay. let the sane comrade help.
okay, i got this challenge out an old book, i had never done it so it was a bit challenging to me. but what i had done war write a brute force password guesser for a ftp server, and in many ways this challenge is same.
here is an image to illistrate, why i said permutation
you keep moving the last element to the next number, when it reaches the end you move the previose element one up, and move the lase element +1 possition of the, however, if the last position is in the last combination and the previouse element is next to it, you have to move the element befor those on up and have then follow it.
at the beginning you add all the numbers together, thats your devisor.
then after each iteration you add all the selected numbers, devide them by the devisor, and you get a ratio. which ever of the combinations give you the closest ration to .50 will be a make up of one team. because that .50 represents fifty percent of the weigt of all the players.
anyways. once again guys. im sorry if i was rude. just had one of those nights were you wanna punch your code liver.