随笔分类 -  ACM-HDU

摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1513 1 #include <iostream> 2 #include <stdio.h> 3 #include <string.h> 4 #include <algorithm> 5 using namespa 阅读全文
posted @ 2016-05-30 21:02 Wally的博客 阅读(107) 评论(0) 推荐(0)
摘要:左边: http://acm.hdu.edu.cn/showproblem.php?pid=1060 1 #include <iostream> 2 #include <math.h> 3 using namespace std; 4 5 int main() 6 { 7 int n,m,d,i; 阅读全文
posted @ 2016-04-28 22:59 Wally的博客 阅读(162) 评论(0) 推荐(0)
摘要:1.一个简单的dp问题 http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=17083 这个题的代码比较简单,状态转移方程也比较容易。现在对于状态转移方程的理解有了不一样的感受,它就好像高中时写通项公式一样,熟练之后就能很快的写出来 阅读全文
posted @ 2016-04-28 20:58 Wally的博客 阅读(1030) 评论(0) 推荐(0)
摘要:Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如 阅读全文
posted @ 2016-04-16 16:28 Wally的博客 阅读(200) 评论(0) 推荐(0)
摘要:Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , s 阅读全文
posted @ 2016-04-11 21:18 Wally的博客 阅读(130) 评论(0) 推荐(0)
摘要:Problem Description Here is a famous story in Chinese history."That was about 2300 years ago. General Tian Ji was a high official in the country Qi. H 阅读全文
posted @ 2016-04-07 21:19 Wally的博客 阅读(164) 评论(0) 推荐(0)
摘要:Problem Description The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floo 阅读全文
posted @ 2016-04-06 21:37 Wally的博客 阅读(148) 评论(0) 推荐(0)
摘要:Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a 阅读全文
posted @ 2016-04-06 20:55 Wally的博客 阅读(141) 评论(0) 推荐(0)
摘要:Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean 阅读全文
posted @ 2016-03-31 16:35 Wally的博客 阅读(147) 评论(0) 推荐(0)
摘要:Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line 阅读全文
posted @ 2016-03-27 15:54 Wally的博客 阅读(133) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1312 这是第一个递归问题。 第一个是自己的代码,感觉还行吧!!!第二个是别人的代码。 阅读全文
posted @ 2016-03-23 23:35 Wally的博客 阅读(129) 评论(0) 推荐(0)
摘要:函数strchr(s,'c')的作用是(查找字符串s中首次出现字符c的位置) 阅读全文
posted @ 2016-03-23 21:01 Wally的博客 阅读(181) 评论(0) 推荐(0)
摘要:本题用了一个数学函数atan(反正切函数) 阅读全文
posted @ 2016-03-16 16:11 Wally的博客 阅读(237) 评论(0) 推荐(0)
摘要:            阅读全文
posted @ 2016-03-14 21:47 Wally的博客 阅读(263) 评论(0) 推荐(0)
摘要:  这个问题中一个特点就是使用scanf输入,如果是cin的话就会超时。 另附一个从网上找到的代码:   阅读全文
posted @ 2016-03-14 21:03 Wally的博客 阅读(190) 评论(0) 推荐(0)
摘要:        阅读全文
posted @ 2016-03-12 21:57 Wally的博客 阅读(185) 评论(0) 推荐(0)
摘要:          一个简单的问题,但if(2 <= k <= M <= 10^9)呢???? 阅读全文
posted @ 2016-03-12 21:19 Wally的博客 阅读(101) 评论(0) 推荐(0)
摘要:Problem Description 大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个 阅读全文
posted @ 2016-03-11 17:36 Wally的博客 阅读(195) 评论(0) 推荐(0)
摘要:Problem Description HDU's 50th birthday, on Octorber 21st, is coming. What an exciting day!! As a student of HDU, I always want to know how many days 阅读全文
posted @ 2016-03-11 14:57 Wally的博客 阅读(147) 评论(0) 推荐(0)
摘要:这个题有两个知识点: 1.数值型高精度 2.补零操作(重点) 阅读全文
posted @ 2016-03-10 20:21 Wally的博客 阅读(109) 评论(0) 推荐(0)