版本比较
该变量不应为空。
正文
增加 2 行删除 2 行
2 行未改动3456789101145 行未改动5758596061622 行未改动### About [A - 区间修改+区间和](https://vjudge.net/contest/771635#problem/A)这道题需要一点注意力。- 观察数据范围,注意到 $n ^ 2 \times x = 4 \times 10 ^ {13}$,显然超过了 `int` 范围,需要使用 `long long`。- 在对 $\text{tag}$ 进行更新时,是使用 `+=` 而不是赋值。- 错误示例:```cppvoid pushdown(int id, int left, int right)45 行未改动- 注意 $\text{double = int / int}$ 时的精度损失。### About [G - Hotel](https://vjudge.net/contest/771635#problem/G)- ~~注意力惊人。~~- 注意区间起点与终点作和/差到底是 $+1$ 还是 $-1$。2 行未改动3456789101145 行未改动5758596061622 行未改动### About [A - 区间修改+区间和](https://vjudge.net/contest/771635#problem/A)这道题需要一点注意力。- 观察数据范围,注意到 $n ^ 2 \times x = 4 \times 10 ^ {13}$,显然超过了 `int` 范围,需要使用 `long long`。- 在对 $\text{tag}$ 进行更新时,是使用 `+=` 而不是赋值。- 错误示例:```cppvoid pushdown(int id, int left, int right)45 行未改动- 注意 $\text{double = int / int}$ 时的精度损失。### About [G - Hotel](https://vjudge.net/contest/771635#problem/G)- ~~注意力惊人。~~- 注意区间起点与终点作和/差到底是 $+1$ 还是 $-1$。