cf/mirror

Simons and Diophantus Equation

CF
2205G3000· legendary gm6s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3 2
4 6
1 1
7 20
720 2025
Output
18
254
6
5558
7864357450
2205G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)