版本比较
题解:CF369E Valera and Queries
正文
增加 1 行删除 1 行
23 行未改动2425262728293031327 行未改动23 行未改动ios::sync_with_stdio(false); cin.tie(nullptr);cin >> n >> m;for (int i = 1, x, y; i <= n; i++) cin >> x >> y, s[y].push_back(x);for (int i = 1, k, x; i <= m; i++) {cin >> k >> x; k--; v[x - 1].push_back({1, i});for (int lst = x; k--; ) cin >> x, v[x - 1].push_back({lst + 1, i}), lst = x;v[N - 1].push_back({x + 1, i});}for (int i = 1; i < N; i++) {7 行未改动23 行未改动2425262728293031327 行未改动23 行未改动ios::sync_with_stdio(false); cin.tie(nullptr);cin >> n >> m;for (int i = 1, x, y; i <= n; i++) cin >> x >> y, s[y].push_back(x);for (int i = 1, k, x; i <= m; i++) {cin >> k >> x; k--; v[x - 1].push_back({1, i});for (int lst = x; k--; ) cin >> x, v[x - 1].push_back({lst + 1, i}), lst = x;v[N - 1].push_back({x + 1, i});}for (int i = 1; i < N; i++) {7 行未改动