Google Code Jam 2017 Round 1A : B. Ratatouille

問題文わかりにくすぎる…。 https://code.google.com/codejam/contest/5304486/dashboard#s=p1&a=2