cf/mirror

Game of AI (hard version)

CF
1704H23500· legendary gm12s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8 998244353
Output
0
2
24
360
6800
153150
4057452
123391016
1704H2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)