摘要: https://codeforc.es/contest/1208/problem/D 线段树维护从1到n的前缀和,从后往前查询第一个前缀和大于ai的位置,线段树简单操作我竟然没当场写出来555 阅读全文
posted @ 2019-08-28 15:03 Venux 阅读(254) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2036 阅读全文
posted @ 2019-08-28 14:47 Venux 阅读(261) 评论(0) 推荐(0) 编辑