摘要: 题目大意: 分析: code: 阅读全文
posted @ 2018-05-24 17:16 visualVK 阅读(223) 评论(0) 推荐(0)
摘要: 题目大意: 分析: code: 阅读全文
posted @ 2018-05-24 17:13 visualVK 阅读(165) 评论(0) 推荐(0)
摘要: F. Mentors 题目大意: 分析: code: 阅读全文
posted @ 2018-05-14 22:17 visualVK 阅读(246) 评论(0) 推荐(0)
摘要: E. Bus Video System 题目大意: 分析: code: 阅读全文
posted @ 2018-05-14 22:11 visualVK 阅读(183) 评论(0) 推荐(0)
摘要: D. Almost Arithmetic Progression 题目大意: 分析: code: 阅读全文
posted @ 2018-05-14 22:07 visualVK 阅读(259) 评论(0) 推荐(0)
摘要: C. Letters 题目大意: 分析: code: 阅读全文
posted @ 2018-05-14 22:04 visualVK 阅读(166) 评论(0) 推荐(0)
摘要: D. Single-use Stones 题意: 分析: 个人代码: 阅读全文
posted @ 2018-05-05 11:21 visualVK 阅读(390) 评论(0) 推荐(0)
摘要: 题意: 菜鸡分析: 个人代码: 阅读全文
posted @ 2018-05-04 21:24 visualVK 阅读(235) 评论(0) 推荐(0)
摘要: 刚开始学习线段树,再次以本题为例,做点笔记 题意:题目有两种操作,一种是询问[l,r]区间的和,另一种是[l,r]区间上的每一位数都加上C 分析:显然,直接将数字C加到区间上的每一位数上比较耗时,效率也比较低,所以我们要另辟蹊径,那就是lazy操作。 lazy操作的意思就是先不将[l,r]区间的数上 阅读全文
posted @ 2018-04-27 22:04 visualVK 阅读(167) 评论(0) 推荐(0)
摘要: 1 You are given a tree (a graph with n vertices and n - 1 edges in which it's possible to reach any vertex from any other vertex using only its edges) 阅读全文
posted @ 2018-04-20 20:44 visualVK 阅读(170) 评论(0) 推荐(0)