Need Help: Two chandeliers

Revision en1, by parveen1981, 2021-06-08 07:51:05

In the editorial of this problem, Can someone please tell me how do we arrive at the these equations and what are pos, x, y?

$$$ \begin{cases} pos \equiv x \pmod n \\ pos \equiv y \pmod m \end{cases} $$$

Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English parveen1981 2021-06-08 07:51:05 358 Initial revision (published)