这笔试懂得都懂hhhh 不过正好没事,随缘参加一下,总体还是偏简单了点,全是模拟排序,就T5是一个树形DPQ1 t = int(input()) def solve(): x, y, k = map(int, input().split()) def gcd(a, b): while a: a, b = b % a, a return b res = 1 for i in range(k + 1): tmp = gcd(x + i, y + k - i) res = max(res, tmp) return res for _ in range(t): print(solve()) Q2t =...