版本比较
[算法] 可持久化线段树
正文
增加 4 行删除 4 行
30 行未改动313233343535363738394041424342434445464763 行未改动11111211311411511511611711811959 行未改动30 行未改动#include<bits/stdc++.h>using namespace std;int a[1000005],cnt,rt[1000005];#define I_int intinline I_int read() inline I_int read(){ I_int x(0),f(1); char c=getchar(); while(c<'0'||c>'9'){if(c=='-')f=-1;c=getchar();} while(c>='0'&&c<='9')x=x*10+(c-'0'),c=getchar(); return x*f;} inline void write(I_int x) }inline void write(I_int x){ char F[1005]; I_int tmp(x>0?x:-x),cnt(0); if(x<0)putchar('-');63 行未改动 rt[i]=rt[v]; } } return 0;} }```
太丑了,来:(2025.3.26)
59 行未改动