Omkar and Akmar
1536F2600· international gm3s256 MB⌨ stdin/stdout
#chinese remainder theorem#combinatorics#constructive algorithms#fft#games#geometry#math#meet-in-the-middle#string suffix structures
Examples
Sample 1of 3
Input
2
Output
4
Sample 2of 3
Input
69420
Output
629909355
Sample 3of 3
Input
42069
Output
675837193
58%
1536F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)