Game of AI (easy version)
1704H13200· legendary gm2.5s1024 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
1 998244353
Output
0
Sample 2of 4
Input
2 998244353
Output
2
Sample 3of 4
Input
3 998244353
Output
24
Sample 4of 4
Input
8 998244353
Output
123391016
58%
1704H1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)