cf/mirror

A Perfect Problem

CF
1603E3200· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2 998244353
Output
4
Sample 2of 3
Input
4 100000007
Output
32
Sample 3of 3
Input
69 999999937
Output
456886663
1603E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)