摘要: 【情景设计】小君和小红是同事兼恋人,有一天他们亲密无间的关系遭到了危急,原来小君的代码风格太过于潦草,结果有一天小红忍不住对他发飙了:“你的activity我看了半天我都看不出来你需要哪个值过去你让我怎么给你写activity啊???!!!”说完摔门扬长而去,... 阅读全文
posted @ 2015-11-08 21:03 MrYu4 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 【当前使用版本 1.4】 logcat是调试代码的很好工具,但是因为跳出的信息过多让人目不暇接,未必能让人找到想要的信息,所以我们必须从中过滤出想要的信息 【样例】这里我们要搜索 System.out.println("success"); 的输出 方法一:... 阅读全文
posted @ 2015-11-05 16:39 MrYu4 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6,... 阅读全文
posted @ 2015-01-03 20:01 MrYu4 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 类似的题目有HDU1058 humble number(翻译下来都是丑陋的数字)。 Description Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequ... 阅读全文
posted @ 2015-01-03 17:56 MrYu4 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given a number N, you are asked to count the number of integers between A and B inclusive which are relati... 阅读全文
posted @ 2015-01-01 13:59 MrYu4 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Description 73 88 1 02 7 4 44 5 2 6 5(Figure 1) Figure 1 shows a number triangle. Write a program that ... 阅读全文
posted @ 2014-12-21 14:24 MrYu4 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are n people standing in a line. Each of them has a unique id number. Now the Ragnarok is coming.... 阅读全文
posted @ 2014-12-20 17:13 MrYu4 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 在大神的网站进不去的时候可以过来看看,另外道客巴巴有个排版比较好的文档,外观派可以去看看http://www.doc88.com/p-2728103209174.html 很早前写的那篇线段树专辑至今一直是本博客阅读点击量最大的一片文章,当时觉得挺自豪的,还... 阅读全文
posted @ 2014-07-26 23:29 MrYu4 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 什么都不说了,贴代码,理解的时候画个树来理解理解就好了,这个也是典型的牺牲空间复杂度来缩短时间复杂度的典型算法。。。。 还是附点图上来吧。。。。。鼠标画的,见谅 #include#include#include#include#define maxn 2000... 阅读全文
posted @ 2014-07-16 16:42 MrYu4 阅读(16) 评论(0) 推荐(0) 编辑
摘要: DFS就是深度搜索算法。。。。感觉就像破案一样。。。。 #include#include#include#define maxn 10using namespace std;char map[maxn][maxn];int mat[maxn][maxn];in... 阅读全文
posted @ 2014-05-27 20:19 MrYu4 阅读(17) 评论(0) 推荐(0) 编辑