这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | |||
2020-2021:teams:alchemist:maxdumbledore:cplusplus:rope [2020/05/15 11:18] maxdumbledore |
2020-2021:teams:alchemist:maxdumbledore:cplusplus:rope [2020/05/15 11:22] (当前版本) maxdumbledore |
||
---|---|---|---|
行 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]; |