ARC075-D Widespread

問題 http://arc075.contest.atcoder.