版本比较
Atcoder ABC460 C题题解
正文
增加 2 行删除 2 行
1234510 行未改动161718192021222321 行未改动45464748495051```## Atcoder ABC460 C题题解[题目传送门](https://atcoder.jp/contests/abc460/tasks/abc460_c)10 行未改动如果当前 $B_j \le 2 \times A_i$,说明可以成功配对,计数加一且两个下标同时后移,若不满足条件,说明当前 $A$ 元素太小无法匹配,只把 $i$ 后移更换更大的 $A$ 元素继续尝试,直到其中一个数组遍历结束,最终得到的计数就是最大配对数。### 代码#include <bits/stdc++.h>using namespace std;21 行未改动printf("%lld",ans);return 0;}[AC记录](https://atcoder.jp/contests/abc460/submissions/76252319)```123410 行未改动15161718192021222321 行未改动45464748495051## Atcoder ABC460 C题题解[题目传送门](https://atcoder.jp/contests/abc460/tasks/abc460_c)10 行未改动如果当前 $B_j \le 2 \times A_i$,说明可以成功配对,计数加一且两个下标同时后移,若不满足条件,说明当前 $A$ 元素太小无法匹配,只把 $i$ 后移更换更大的 $A$ 元素继续尝试,直到其中一个数组遍历结束,最终得到的计数就是最大配对数。### 代码```cpp#include <bits/stdc++.h>using namespace std;21 行未改动printf("%lld",ans);return 0;}```[AC记录](https://atcoder.jp/contests/abc460/submissions/76252319)