正文
增加 4 行删除 4 行
26 行未改动2728293031323334353637384 行未改动4344454647484950512 行未改动26 行未改动int n, a[100001], T;inline void solve() {cin >> n;for (int i = 1; i <= n; i++)cin >> a[i];for (int i = 1; i <= n; i++)for (int j = i + 1; j <= n; j++)if (a[j] % a[i] % 2 == 0) {cout << a[i] << " " << a[j] << endl;return;}4 行未改动ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);cin >> T;while (T--)solve();return 0;}```2 行未改动26 行未改动2728293031323334353637384 行未改动4344454647484950512 行未改动26 行未改动int n, a[100001], T;inline void solve() {cin >> n;for (int i = 1; i <= n; i++)cin >> a[i];for (int i = 1; i <= n; i++)for (int j = i + 1; j <= n; j++)if (a[j] % a[i] % 2 == 0) {cout << a[i] << " " << a[j] << endl;return;}4 行未改动ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);cin >> T;while (T--)solve();return 0;}```2 行未改动