cf/mirror

Find Minimum Operations

CF
2020A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
5 2
3 5
16 4
100 3
6492 10
10 1
Output
2
3
1
4
21
10
2020A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)