The PDF version of the problemset can be downloaded here.
3 2 998244353
2
4 2 993244853
10
500000 123456 100000007
43861600
314159 265358 265531103
0
ICPC 2026 Asia Seoul Regional Problem C