正文
增加 1 行删除 1 行
12 行未改动13141516171819202166 行未改动12 行未改动#define int long longusing namespace std;int n, a[100001];```2. 在确定公差的情况下计算所需操作次数,如果不能做到返回 $1e7$ 代表失败。```cppint cala() {int d = a[2] - a[1], res = 0;for (int i = 3; i <= n; i++) {66 行未改动12 行未改动13141516171819202166 行未改动12 行未改动#define int long longusing namespace std;int n, a[100001];```2. 在确定公差的情况下计算所需操作次数,如果不能做到返回 $10^7$ 代表失败。```cppint cala() {int d = a[2] - a[1], res = 0;for (int i = 3; i <= n; i++) {66 行未改动