版本比较
10.4下午河西--蒋
正文
增加 6 行删除 6 行
12345567893 行未改动1314151617171819202126 行未改动4849505152525354555627 行未改动8485868788888990919230 行未改动123124125126127128127128129130131132106 行未改动全部展开## [10.4下午河西--蒋](https://www.luogu.com.cn/contest/280504)### A [P1147 连续自然数和](https://www.luogu.com.cn/problem/P1147)[赛时已AC。](https://www.luogu.com.cn/record/238511346)### B [T671944 交叉区间](https://www.luogu.com.cn/problem/T671944)挺简单的,就是要注意二分。 挺简单的,就是要注意二分。[提交记录](https://www.luogu.com.cn/record/238609462)```cpp#include <bits/stdc++.h>using namespace std;3 行未改动typedef vector<int> vi;typedef pair<ll,ll> pll;const int N=5e5,Ai=1e9;struct node{ int l,r; int l,r;}a[N+10];bool cmp(node x,node y){ if(x.l!=y.l)return x.l<y.l; return x.r>y.r;26 行未改动 return 0;}```### C [T671945 落落的去的围栏](https://www.luogu.com.cn/problem/T671945)依次遍历分别给左边颜色(1,n-1)的空间,二分求出分别满足左区间与右区间数量需求的颜色,乘起来,再去重。 依次遍历分别给左边颜色(1,n-1)的空间,二分求出分别满足左区间与右区间数量需求的颜色,乘起来,再去重。[提交记录](https://www.luogu.com.cn/record/238610767)```cpp#include <bits/stdc++.h>using namespace std;27 行未改动 return 0;}```### D [U593645 操作2](https://www.luogu.com.cn/problem/U593645)不开long long 见祖宗。 不开long long 见祖宗。[提交记录](https://www.luogu.com.cn/record/238612144)```cpp#include <bits/stdc++.h>using namespace std;30 行未改动 return 0;}```### F [T640821 【ptyb2024】胖头鱼战士](https://www.luogu.com.cn/problem/T640821)大模拟。 除了变量多了点,其他没啥,拿部分分。 大模拟。除了变量多了点,其他没啥,拿部分分。[提交记录](https://www.luogu.com.cn/record/238608226)```cpp#include <bits/stdc++.h>using namespace std;106 行未改动全部展开