跳到正文

闲话

不要使用 rope

do_it_tomorrow约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年11月19日
收录
2025年12月12日
更新
2026年11月16日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<iostream>
#include<ext/rope>
using namespace std;
using namespace __gnu_cxx;
rope<int> H;
signed main(){
    H.push_back(0);
    H.push_back(3);
    H.push_back(1);
    H.push_back(2);
    H.push_back(6);
    for(int i:H) cout<<i<<' ';cout<<'\n';
    H.erase(1);
    for(int i:H) cout<<i<<' ';
    return 0;
}

CSP 初赛考这个东西的输出,一考一个准。

原文