Rosetta Problems

希少な数 (Rare Number)

https://atcoder.jp/contests/joi2022yo1b/tasks/joi2022_yo1b_d