Divisibility By Difference

medium
https://codeforces.com/problemset/problem/876/B

Input Format

check the link

Output Format

check the link

Constraints

check the link

Notice

check the link

Example

Input

        
Output

        
Previous
Good Subarrays
Next
Sasha And Magnetic Machines

Related Questions