摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1390 Binary NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2298Accepted Submission(s): 1460 Problem DescriptionGiven a positive integer n, find the positions of all 1's in its binary representa 阅读全文
posted @ 2013-10-19 16:29 疯狂的癫子 阅读(215) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1339正常做法超时,要有点小技巧存在。 A Simple TaskTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3372Accepted Submission(s): 1837 Problem DescriptionGiven a positive integer n and the odd integer o and the nonnegative in 阅读全文
posted @ 2013-10-19 16:08 疯狂的癫子 阅读(224) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1335 Basically SpeakingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1885Accepted Submission(s): 729 Problem DescriptionThe Really Neato Calculator Company, Inc. has recently hired your team to help desi 阅读全文
posted @ 2013-10-19 15:23 疯狂的癫子 阅读(703) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4300很难懂题意.... Clairewd’s messageTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2839Accepted Submission(s): 1096 Problem DescriptionClairewd is a member of FBI. After several years concealing in BUPT, she 阅读全文
posted @ 2013-10-16 16:48 疯狂的癫子 阅读(185) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2551妙用for循环。 竹青遍野Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3183Accepted Submission(s): 1832 Problem Description"临流揽镜曳双魂 落红逐青裙 依稀往梦幻如真 泪湿千里云" 在MCA山上,除了住着众多武林豪侠之外,还生活着一个低调的世外高人,他本名逐青裙,因为经常被人叫 阅读全文
posted @ 2013-10-16 16:12 疯狂的癫子 阅读(666) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2561 第二小整数Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5445Accepted Submission(s): 3433 Problem Description求n个整数中倒数第二小的数。 每一个整数都独立看成一个数,比如,有三个数分别是1,1,3,那么,第二小的数就是1。Input输入包含多组测试数据。 输入的第一行是一个整数C,表示有C测试数据 阅读全文
posted @ 2013-10-15 17:41 疯狂的癫子 阅读(220) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2562 奇偶位互换Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3824Accepted Submission(s): 2913 Problem Description给定一个长度为偶数位的0,1字符串,请编程实现串的奇偶位互换。Input输入包含多组测试数据; 输入的第一行是一个整数C,表示有C测试数据; 接下来是C组测试数据,每组数据输入均为0,1字符 阅读全文
posted @ 2013-10-15 17:14 疯狂的癫子 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 学习:重点理解这句话的意思: next[j]会告诉我们从哪里开始匹配模板题。 OulipoTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3612Accepted Submission(s): 1428 Problem DescriptionThe French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter ' 阅读全文
posted @ 2013-10-15 16:57 疯狂的癫子 阅读(178) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1358学习重要的是: len 如果能整除 len-next[len],那么重复的次数就是 len/(len-next[len])不能整除就没有重复串。 PeriodTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2168Accepted Submission(s): 1071 Problem DescriptionFor each prefix of a g 阅读全文
posted @ 2013-10-14 21:37 疯狂的癫子 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3791用数组建立二叉树: 二叉搜索树Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2354Accepted Submission(s): 1016 Problem Description判断两序列是否为同一二叉搜索树序列Input开始一个数n,(1#includeint main(){ int i,j,t,c; char s[22]; i... 阅读全文
posted @ 2013-10-10 20:41 疯狂的癫子 阅读(313) 评论(0) 推荐(0) 编辑