You forget to clear the dict for each test case.

After fixing it, your solution still runs out of time.

-- 
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/70e12f7f-150d-46ea-928d-75b82aa2cdd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to