USACO 2017 US Open Contest, Silver Problem 2. Bovine Genomics solution needed

Hi, anyone has the python solution for USACO 2017 US Open Contest, Silver Problem 2. Bovine Genomics

http://www.usaco.org/index.php?page=viewproblem2&cpid=739

My solution pass all tests except 7 and 10 because of execution timeout. I cannot find any python solution from the internet, it will be great if someone can post the final solution.

Thanks

1 Like