COulD you help me in this problem?
i trying to solve this problem.I tried my best I got 23 point(I got 1-st and 2-nd subtask).Can you share your idea for full score?