I was solving round 1A problem B (Ratatouille) in practice, and then I got the solution using matching, this solution will work fine for the small data set and should fail for the large data set, but I tried the solution anyway and surprisingly it passed.
This test case should give 0 as an answer: 1 3 1 70 70 70 690 700 780 but it gives 1 in my code. Also the solution is completely wrong as it doesn't even use vertex split technique. Another case: 1 3 2 70 70 70 700 700 700 100 700 700 it should give 1 but it gives 2. Solution: http://ideone.com/eqAerx -- 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/66b4a39e-b198-4005-b2eb-aa80868f6e47%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
