2017-03-03 TopCoder SRM 628 Div2 Hard InvariantSets docs.google.com Functional GraphでのDPするのに、SCCして逆辺張ってゴニョゴニョしたのが馬鹿すぎる…