Physical Music how to solve HELP!!!
https://open.kattis.com/problems/physicalmusic how to solve this problem, help please!!!