1. 求最大公约数 #include <bits/stdc++.h> using namespace std; int a, b; int solution() { while (a != b) { while (a > b) a = a - b; while (b > a) b = b - a; } return a; } int main() { while (cin >> a >> b) { cout << solution() <<...