随笔分类 -  6-1-数据结构-前缀和

摘要:You are given an array a1,a2,…,ana1,a2,…,an and an integer kk. You are asked to divide this array into kk non-empty consecutive subarrays. Every eleme 阅读全文
posted @ 2019-06-30 16:03 yzm10 阅读(454) 评论(0) 推荐(0)
摘要:233 Matrix In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here i 阅读全文
posted @ 2018-09-06 22:12 yzm10 阅读(299) 评论(0) 推荐(0)
摘要:Do you know what is called ``Coprime Sequence''? That is a sequence consists of nnpositive integers, and the GCD (Greatest Common Divisor) of them is 阅读全文
posted @ 2018-08-24 20:52 yzm10 阅读(114) 评论(0) 推荐(0)
摘要:Color the ball N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮他算出每个气球被涂过几 阅读全文
posted @ 2017-08-08 20:36 yzm10 阅读(205) 评论(0) 推荐(1)
摘要:Feel Good Bill is developing a new mathematical theory for human emotions. His recent investigations are dedicated to studying how good or bad days in 阅读全文
posted @ 2017-07-23 13:10 yzm10 阅读(259) 评论(0) 推荐(0)
摘要:冰清玉洁丶YCB 发布时间: 2017年6月18日 21:39 最后更新: 2017年6月18日 21:40 时间限制: 1000ms 内存限制: 256M 描述 YCB是公认的冰清玉洁,人称锦州刚猛好男儿,凌河区一把刀。 一天YCB来到了一个n × m迷宫,每一个单位或者是空地("."),或者是墙 阅读全文
posted @ 2017-07-20 13:30 yzm10 阅读(234) 评论(0) 推荐(0)
摘要:区间sum 描述 有一个长度为n的正整数序列a1--an,candy想知道任意区间[L,R]的和,你能告诉他吗? 有一个长度为n的正整数序列a1--an,candy想知道任意区间[L,R]的和,你能告诉他吗? 有一个长度为n的正整数序列a1--an,candy想知道任意区间[L,R]的和,你能告诉他 阅读全文
posted @ 2017-07-16 18:31 yzm10 阅读(758) 评论(0) 推荐(0)