Why you add the -1 in the range? When you write 'range(0,n)' the iteration is from 0 to n-1, so your iteration doesn't go up to the last element of the list of houses.
I haven't run your code but I notice that detail. -- 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 google-code+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/5fa495f7-d512-46bd-94b2-eedea2cb868d%40googlegroups.com.