2016年4月10日
摘要: A:Gabriel and Caterpillar 题意:蜗牛爬树问题;值得一提的是在第n天如果恰好在天黑时爬到END,则恰好整除,不用再+1; #include <iostream> #include <algorithm> #include <stdlib.h> #include <time.h 阅读全文
posted @ 2016-04-10 22:17 yoyo_sincerely 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 树状数组(Fenwick_tree),最早由Peter M. Fenwick于1994年以A New Data Structure for Cumulative Frequency Tables为题发表在SOFTWARE PRACTICE AND EXPERIENCE。其初衷是解决数据压缩里的累积频 阅读全文
posted @ 2016-04-10 18:46 yoyo_sincerely 阅读(239) 评论(0) 推荐(0) 编辑