版本比较
题解:CF2164B Even Modulo Pair
正文
增加 4 行删除 4 行
26 行未改动2728293031313233343334353637384 行未改动434445464747484950512 行未改动26 行未改动int n, a[100001], T;
inline void solve() { cin >> n; for (int i = 1; i <= n; i++) 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++) 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--) while (T--) solve(); return 0;}```2 行未改动