| code228 |
| 1 | struct seg |
| 2 | int l; |
| 3 | int r; |
| 4 | int id; |
| 5 | bool operator < (const seg &b) const { |
| 6 | return l < b.l; |
| 7 | int n; |
| 8 | int32_t main() |
| 9 | #ifdef LOCAL |
| 10 | freopen("input.txt", "r", stdin); |
| 11 | #endif |
| 12 | ios_base::sync_with_stdio(false); |
| 13 | cin.tie(0); |
| 14 | cout.tie(0); |
| 15 | cin >> n; |
| 16 | vi nums(2 * n); |
| 17 | fi(0, n) |
| 18 | sort(all(nums)); |
| 19 | nums.resize(unique(all(nums)) - nums.begin()); |
| 20 | fi(0, n) |
| 21 | sort(segs, segs + n); |
| 22 | fi1(n, 0) |
| 23 | int pmax = 0; |
| 24 | fj(i + 1, n) |
| 25 | break; |
| 26 | fi(0, n) { |
| 27 | int smax = 0; |
| 28 | fj(0, i) { |
| 29 | fi(0, n) |
| 30 | fj(1, 2 * MX) |
| 31 | int q; |
| 32 | cin >> q; |
| 33 | fi(0, q) { |
| 34 | int id; |
| 35 | cin >> id; |
| 36 | --id; |
Комментарии