사이클 길이의 약수만 검사해주는 이론적 이유가 머임? 사이클 길이가 약수가 아닐때는 왜 안되는지 당최 모르겠네..

https://codeforces.com/contest/1327/problem/D