题目地址:https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH22
Indeterminate Equation
不定方程
描述:
Given A, B and C. Find X and Y so that A times X plus B times Y equals to C.
给出A,B和C。找到X和Y。使A乘以X加B乘以Y等于C。
输入:
Three positive integer A, B, C (A, B, C <= 100).
三个正整数A,B,C(A,B,C <= 100).
输出:
Two integers X and Y.
两个整数X和Y。
样例输入:
4 7 10
样例输出:
-1 2