2013年11月19日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1007好费劲的一题,但还是被我A了,学到不少东西,骚年继续加油吧!#include #include #include #include #include using namespace std;struct coor{ double x,y;}p[100005];int a[100005];int cmpx(const coor &a,const coor &b){ return a.x>1; double ans=min(merger(low,mid),merger(mid+1,hi 阅读全文
posted @ 2013-11-19 22:04 那个人- 阅读(281) 评论(0) 推荐(0) 编辑

2013年11月18日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1017说是水题,题目意思理解就费了好大事,又来个强制转型问题,原来int型运算结果转double型已经把小数截掉了#include int main(){ int N,n,m,i,j; double t,s; scanf("%d",&N); while(N--) { int x,r=0; while(scanf("%d%d",&n,&m)!=EOF) { r++; if(n==0&&m==0)b... 阅读全文
posted @ 2013-11-18 18:00 那个人- 阅读(211) 评论(0) 推荐(0) 编辑

2013年11月13日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1548第一道宽搜题,虽然参考了代码,但感觉不是太难马上就能运用自如,耶! I CAN!!A strange liftTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9235Accepted Submission(s): 3506Problem DescriptionThere is a strange lift.The lift can stop can... 阅读全文
posted @ 2013-11-13 20:01 那个人- 阅读(256) 评论(0) 推荐(0) 编辑

2013年11月12日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1165不看题解,使劲找规律,应该是可以找到的,就是费时间!Problem DescriptionAs is known, Ackermann function plays an important role in the sphere of theoretical computer science. However, in the other hand, the dramatic fast increasing pace of the function caused the value of Ackerman 阅读全文
posted @ 2013-11-12 12:20 那个人- 阅读(506) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1274展开字符串Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1102Accepted Submission(s): 495Problem Description在纺织CAD系统开发过程中,经常会遇到纱线排列的问题。该问题的描述是这样的:常用纱线的品种一般不会超过25种,所以分别可以用小写字母表示不同的纱线,例如:abc表示三根纱线的排列;重复可以用数字和括 阅读全文
posted @ 2013-11-12 10:21 那个人- 阅读(422) 评论(0) 推荐(0) 编辑

2013年11月10日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4006The kth great numberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 5478Accepted Submission(s): 2241Problem DescriptionXiao Ming and Xiao Bao are playing a simple Numbers game. In a round Xiao Ming can 阅读全文
posted @ 2013-11-10 17:05 那个人- 阅读(218) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1896题目意思待理解!!!StonesTime Limit: 5000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 698Accepted Submission(s): 421Problem DescriptionBecause of the wrong status of the bicycle, Sempr begin to walk east to west every mornin 阅读全文
posted @ 2013-11-10 14:31 那个人- 阅读(392) 评论(0) 推荐(0) 编辑

2013年11月9日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1873真的不难,唉,可我还是参考了别人的代码,真心希望看到这篇的你自己写完这题,摆脱依赖!Problem Description看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。医生在看病时,则会在他的队伍里面选择一个优先权最高的人进行诊治。如果遇到两个优先权一样的 阅读全文
posted @ 2013-11-09 20:47 那个人- 阅读(407) 评论(0) 推荐(0) 编辑
 
摘要: 关于学习C++和编程的50个观点kingofarkRevision1.01.把C++当成一门新的语言学习(和C没啥关系!真的。);2.看《ThinkingInC++》,不要看《C++变成死相》;3.看《TheC++ProgrammingLanguage》和《InsideTheC++ObjectModel》,不要因为他们很难而我们自己是初学者所以就不看;4.不要被VC、BCB、BC、MC、TC等词汇所迷惑——他们都是集成开发环境,而我们要学的是一门语言;5.不要放过任何一个看上去很简单的小编程问题——他们往往并不那么简单,或者可以引伸出很多知识点;6.会用VisualC++,并不说明你会C++; 阅读全文
posted @ 2013-11-09 09:43 那个人- 阅读(191) 评论(0) 推荐(0) 编辑

2013年11月8日

摘要: 这道题到处是坑啊,5在一组数的任何地方都要注意,55555566/655555/35554544/http://acm.hdu.edu.cn/showproblem.php?pid=1106Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。Input输入包含多组测试用例,每组输入数据只有一行数字(数字之间没有空格),这行数字的长度不大于10 阅读全文
posted @ 2013-11-08 20:49 那个人- 阅读(351) 评论(0) 推荐(0) 编辑