For problem $D$, I miscalculated that if we consider all possible pairs of integers from intervals $[l,l+10)$ and $(r−10,r]$, we will find at least one coprime pair. But, the problem passed the system tests. Can anyone prove it or uphack the solution? Submission — 298478051
For problem $D$, I miscalculated that if we consider all possible pairs of integers from intervals $[l,l+10)$ and $(r−10,r]$, we will find at least one coprime pair. But, the problem passed the system tests. Can anyone prove it or uphack the solution?
Submission — 298478051