xehoth / xehoth-blog-comment

0 stars 0 forks source link

「模拟测试」纸带-线段树/set/并查集 | xehoth #301

Open xehoth opened 6 years ago

xehoth commented 6 years ago

https://blog.xehoth.cc/SuperOJ2025/

给出一个序列,每次操作将 $[l, r]$ 染上一种颜色 $i$,问最后有多少种颜色。