A line on the plane is described by an equation Ax + By + C = 0. You are to find any point on this line, whose coordinates are integer numbers from - 5·1018 to 5·1018 inclusive, or to find out that s
A line on the plane is described by an equation Ax + By + C = 0. You are to find any point on this line, whose coordinates are integer numbers from - 5·1018 to 5·1018inclusive, or to find out that su
链接:点击打开链接 题意:求Ax+By=c中x,y的值,无解时输出-1 代码: #include <iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cmath>using namespace std;long long x,y;long long gcd(long long a,lo