Modular Equations
495B1600· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
21 5
Output
2
Sample 2of 3
Input
9435152 272
Output
282
Sample 3of 3
Input
10 10
Output
infinity
58%
495B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
21 5
2
9435152 272
282
10 10
infinity