2019-07-15から1日間の記事一覧

AtCoder Grand Contest 035. B. Even Degrees

https://atcoder.jp/contests/agc035/tasks/agc035_bWe can restated the problem as follows. There are people on vertices with odd degree. When we swap the direction of the edge, the human on the end-points moves on the edge. If both endpoints…