Rosetta Problems
← atcoder に戻る
Sum of Prod of Mod of Linear
https://atcoder.jp/contests/abc402/tasks/abc402_g