Linear Diophantine Equation
You have been given three Integers a, b and k. you need to find an integral solution of x and y such that a*x + b*y= k * gcd(a,b).Input Format
It can be proven that solution always exist.
The first line contains 3 integer a, b and k.Output Format
output integral value of x and y in a single line.Question Video
1 <= a, b, k <= 10^6Sample Input
3 5 8Sample Output
Asked in Companies