摘要: A.直接模拟。 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 #define rep(i,l,r) for (int i=(l); i<=(r); i++) 6 typedef 阅读全文
posted @ 2019-06-09 17:59 HocRiser 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 类似维护括号序列,给每个点建两个点,然后所有操作都能轻松支持了。注意sum和lastans是long long。 阅读全文
posted @ 2019-06-09 09:17 HocRiser 阅读(181) 评论(0) 推荐(0) 编辑