这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
2020-2021:teams:alchemist:maxdumbledore:cplusplus:rope [2020/05/15 11:17] maxdumbledore 创建 |
2020-2021:teams:alchemist:maxdumbledore:cplusplus:rope [2020/05/15 11:22] (当前版本) maxdumbledore |
||
---|---|---|---|
行 1: | 行 1: | ||
===== 洛谷3369 可持久化平衡树 ===== | ===== 洛谷3369 可持久化平衡树 ===== | ||
- | <code> | + | <code cpp> |
#include "ext/rope" | #include "ext/rope" | ||
#include<cstdio> | #include<cstdio> | ||
行 16: | 行 16: | ||
cin >> n; | cin >> n; | ||
for (int i = 1; i <= n; ++i) { | for (int i = 1; i <= n; ++i) { | ||
- | static int v, opt, x; | + | int v, opt, x; |
scanf("%d%d%d", &v, &opt, &x); | scanf("%d%d%d", &v, &opt, &x); | ||
nums[i] = nums[v]; | nums[i] = nums[v]; |