Problem : Once upon a time problem

Правка en2, от devarshi09, 2018-11-13 00:18:36

I am not able to solve problem "once upon a time" from this(http://mirror.codeforces.com/gym/100963/attachments) set . I tried extended euclidean algorithm. Can anyone provide the solution (in form of code or editorial) for this problem Or help me debug my code (http://mirror.codeforces.com/gym/100963/attachments) .

Теги gcd, extended euclid, diophantine

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский devarshi09 2018-11-13 00:18:36 6 Tiny change: 't able to problem "' -> 't able to solve problem "'
en1 Английский devarshi09 2018-11-13 00:18:06 334 Initial revision (published)