摘要: int rt[M]; int cnt[M<<5]; int ch[M<<5][2]; int pre[M]; int tot=0; int n,m; void ins(int a,int b,int t,int x){ if(t<0)return; int i = (x>>t)&1; ch[a][! 阅读全文
posted @ 2025-11-25 21:37 Marinaco 阅读(5) 评论(0) 推荐(0)
摘要: ordered_multiset 由于set和multiset不支持随机访问,所以二分查询的速度是\(O(n)\)的 (你不可以使用st.lower_bound(value) -st.begin()这样的查询方法而是需要调用distance方法) ordered_multiset提供了方法order 阅读全文
posted @ 2025-11-25 11:42 Marinaco 阅读(7) 评论(0) 推荐(0)
//雪花飘落效果