Rosetta Problems

Existence Counting

https://atcoder.jp/contests/arc174/tasks/arc174_e