cf/mirror

On Iteration of One Well-Known Function

CF
396E1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 3
Input
1
7 1
1
Output
2
2 1
3 1
Sample 2of 3
Input
1
7 1
2
Output
1
2 1
Sample 3of 3
Input
1
2 100000000000000000
10000000000000000
Output
1
2 90000000000000000
396E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)