Rosetta Problems

998244353点

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1312