上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in whi 阅读全文
posted @ 2017-04-22 17:09 happy_codes 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Zipper Zipper Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. T 阅读全文
posted @ 2017-04-22 16:58 happy_codes 阅读(182) 评论(0) 推荐(0) 编辑
摘要: QQpet exploratory park QQpet exploratory park Today, more and more people begin to raise a QQpet. You can get a lot of pleasure from it, although it d 阅读全文
posted @ 2017-04-22 16:46 happy_codes 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 漫步校园 LL最近沉迷于AC不能自拔,每天寝室、机房两点一线。由于长时间坐在电脑边,缺乏运动。他决定充分利用每次从寝室到机房的时间,在校园里散散步。整个HDU校园呈方形布局,可划分为n*n个小方格,代表各个区域。例如LL居住的18号宿舍位于校园的西北角,即方格(1,1)代表的地方,而机房所在的第三实 阅读全文
posted @ 2017-04-22 16:37 happy_codes 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 平衡树 平衡树 神奇的cxlove有一颗平衡树,其树之神奇无法用语言来描述 OrzOrz。 这棵树支持3种操作: 1、加入一个数到树中,维护平衡树的合法性; 2、给一个数X,用O(1)的时间求出来树中的数Y使得 Y ^ X 最大(异或操作, Pascal 写作 xor , 0 ^ 0 = 0 , 1 阅读全文
posted @ 2017-04-22 16:27 happy_codes 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 哥德巴赫猜想认为“每一个大于2的偶数,都能表示成两个质数之和”。 给定一个大于2的偶数N,你能找到两个质数P和Q满足P<=Q并且P+Q=N吗? Input 一个偶数N(4 <= N <= 1000000) Output 输出P和Q。如果有多组解,输出P最小的一组。 Sample Input Samp 阅读全文
posted @ 2017-04-22 16:24 happy_codes 阅读(162) 评论(0) 推荐(0) 编辑
摘要: What is possibility of rolling N dice and the sum of the numbers equals to M? Input Two integers N and M. (1 ≤ N ≤ 100, 1 ≤ M ≤ 600) Output Output the 阅读全文
posted @ 2017-04-22 16:21 happy_codes 阅读(105) 评论(0) 推荐(0) 编辑
摘要: HDU 1712 Problem Description ACboy has N courses this term, and he plans to spend at most M days on study.Of course,the profit he will gain from diffe 阅读全文
posted @ 2017-04-22 16:19 happy_codes 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Bag of mice CodeForces - 148D The dragon and the princess are arguing about what to do on the New Year's Eve. The dragon suggests flying to the mounta 阅读全文
posted @ 2017-04-18 17:20 happy_codes 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 合唱队形 OpenJ_Bailian - 2711 N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学不交换位置就能排成合唱队形。 合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1, 2, …, K,他们的身高分别为T1, T2, …, TK,则他们的身高满足T1 阅读全文
posted @ 2017-04-18 17:13 happy_codes 阅读(394) 评论(0) 推荐(0) 编辑
摘要: A - 地震预测 FZU - 1492 怀特先生是一名研究地震的科学家,最近他发现如果知道某一段时间内的地壳震动能量采样的最小波动值之和,可以有效地预测大地震的发生。 假设已知一段时间的n次地壳震动能量的采样值为a1,a2,…an,那么第i 次采样的最小波动值为min{|ai-aj| | i<j<= 阅读全文
posted @ 2017-04-18 17:09 happy_codes 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 今天,看了KMP,首先是在网上看的,看了很久没看懂,有很多思想,很多next的推导,就相当于很多的版本,后来,去看了<<大话数据结构>>这本书,才看懂,这KMP的神奇之处,这本书写得很详细,非常好理解,对于KMP的思想,对于next的推导,next的优化,都说得比较好理解。看懂后,才惊觉,网上的很多 阅读全文
posted @ 2017-04-17 11:33 happy_codes 阅读(354) 评论(0) 推荐(0) 编辑
摘要: In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect all the 108 people in th 阅读全文
posted @ 2017-04-12 20:19 happy_codes 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl). Homura wants to help her friend Madoka save the world. But because of the plot of the Boss 阅读全文
posted @ 2017-04-12 20:01 happy_codes 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Hzz loves aeroplane chess very much. The chess map contains N+1 grids labeled from 0 to N. Hzz starts at grid 0. For each step he throws a dice(a dice 阅读全文
posted @ 2017-04-12 19:52 happy_codes 阅读(189) 评论(0) 推荐(0) 编辑
摘要: There is a very simple and interesting one-person game. You have 3 dice, namelyDie1, Die2 and Die3. Die1 has K1 faces. Die2 has K2 faces. Die3 has K3  阅读全文
posted @ 2017-04-12 19:38 happy_codes 阅读(204) 评论(0) 推荐(0) 编辑
摘要: YYF is a couragous scout. Now he is on a dangerous mission which is to penetrate into the enemy's base. After overcoming a series difficulties, YYF is 阅读全文
posted @ 2017-04-12 18:27 happy_codes 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets a ne 阅读全文
posted @ 2017-04-12 17:52 happy_codes 阅读(199) 评论(2) 推荐(1) 编辑
摘要: 1048 石子归并 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 1048 石子归并 1048 石子归并 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Go 阅读全文
posted @ 2017-04-12 12:04 happy_codes 阅读(172) 评论(0) 推荐(0) 编辑
摘要: GCD Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3432 Accepted Submission(s): 1227 Problem De 阅读全文
posted @ 2017-04-05 22:05 happy_codes 阅读(530) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页