版本比较
题解:P14576 Lamborghini (Remix)
正文
增加 2 行删除 2 行
33 行未改动3435363738394041428 行未改动51525354555657585919 行未改动33 行未改动## 代码```cpp#include <bits/stdc++.h>#define I return#define AK 0#define IOI ;using namespace std;typedef long long ll;8 行未改动int n;cin >> n;vector<ll> a(n);vector<ll> g(n);for (int i = 0; i < n; i ++)cin >> a[i];// g[i] 表示第i行末尾在连续空间中的位置g[0] = a[0];for (int i = 1; i < n; i ++) g[i] = g[i - 1] + 1 + a[i]; // +1 表示行之间的分隔19 行未改动33 行未改动3435363738394041428 行未改动51525354555657585919 行未改动33 行未改动## 代码```cpp#include <bits/stdc++.h>#define I return#define AK 0#define IOI ;using namespace std;typedef long long ll;8 行未改动int n;cin >> n;vector<ll> a(n);vector<ll> g(n);for (int i = 0; i < n; i ++)cin >> a[i];// g[i] 表示第i行末尾在连续空间中的位置g[0] = a[0];for (int i = 1; i < n; i ++) g[i] = g[i - 1] + 1 + a[i]; // +1 表示行之间的分隔19 行未改动