how to solve equation ??

Правка en2, от sanket407, 2016-10-06 15:26:22

Equation is ax — by = k Find non negative integers a,b such that above eq is satisfied and (a+b) is minimum possible. x,y,k are given non negative integers. Problem for reference :: https://www.codechef.com/problems/FLASH Also give a general method for solving such equations . Note: I know the gcd logic which checks the soln exists. I bruteforced values of a but got TLE

Теги equation, solve

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский sanket407 2016-10-06 15:26:22 5 Tiny change: 'ASH\nAlso a general' -> 'ASH\nAlso give a general'
en1 Английский sanket407 2016-10-06 15:25:52 403 Initial revision (published)