Rosetta Problems

Counting Eulerian Circuits

https://judge.yosupo.jp/problem/counting_eulerian_circuits