https://www.acmicpc.net/problem/2812
Activity