@Matej P I totally agree with you, I also thought about maximising the number of rounded up languages but there was no way to prove myself that it would be the optimal solution. So I thought that was taking a wrong direction. Then I saw in the analysis that it was but there is no mathematical proof.
For example let's say that I have [49.5 49.5 1], if you round them up you get [50 50 1] and the total is 101. Now let's say that I have [32.9 32.9 32.9 1.3], if you round them up you get [33 33 33 1] and the total is 100. However in the first case you rounded 2 languages and in the second case you rounded 3 languages. (Yes you will tell me that they would correspond to different distributions but since the theorem is true, it's normal that I cannot find a complete counter-example). If somebody has some mathematical (or pseudo-mathematical proof) that maximising the number of rounded languages maximises the sum that would be nice :-) -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/84f6bcf6-240c-47e1-bee3-7279a2123adb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
