版本比较
CCPC 2022 广州站题解
正文
增加 4 行删除 4 行
34 行未改动353637383939404142432 行未改动464748495050515253542 行未改动5758596061616263646525 行未改动919293949595969734 行未改动#define N 1000010using namespace std;typedef long long ll;
template <typename T> inline void read(T &x) template <typename T> inline void read(T &x){ x = 0; T f = 1; char ch = getchar(); while (!isdigit(ch)) {if (ch == '-') f = -f; ch = getchar();} while (isdigit(ch)) {x = x * 10 + ch - 48; ch = getchar();}2 行未改动
ll n, m, ans[N], b[N], lvl, delt, M, tr[N];struct Node {ll x, y, w;} a[N];
inline bool cmp(const Node &a, const Node &b) inline bool cmp(const Node &a, const Node &b){ if (a.x == b.x) return a.y < b.y; return a.x < b.x;}2 行未改动
inline void add(ll x){ for (; x <= n; x += lowbit(x)) tr[x] += 1; tr[x] += 1;}
inline ll query(ll x){25 行未改动 m -= delt * (i - 1); lvl = a[i].x; } for (int i = 1; i <= n; i++) printf("%lld\n", ans[i]); return 0; return 0;}```