#include <iostream> using namespace std; int gcd(int a, int b){ return b==0? a : gcd(b, a%b); } void solve(){ int x, y, a, b, c, d; cin >> x >> y >> a >> b >> c >> d; int g_x = gcd(c, d); int g_y = gcd(a, b); if(x % g_x == 0 && y % g_y == 0){ cout &l...