题目:Knight MovesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 453 Accepted Submission(s): 326 Problem DescriptionA friend of you is doing research...
分类:
其他好文 时间:
2015-02-17 12:56:35
阅读次数:
141
完整源代码: http://download.csdn.net/detail/hanqing280441589/8450041 红黑节点设计与实现template
class RedBlackNode
{
friend class RedBlackTree;
//所有的成员都是private
private:
RedBlackNode(const Comparable &theE...
分类:
其他好文 时间:
2015-02-17 11:42:50
阅读次数:
129
Knight Moves
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu
Submit Status
Description
A friend of you is doing research on the Traveling Knight Problem (TKP) ...
分类:
其他好文 时间:
2015-02-15 09:27:54
阅读次数:
254
我对字符串的输出是比较头疼的,就是在技巧方面把握的不好,记得刚开始接触字符串的时候,就是要正着输入倒着输。。。。。。都不会,就是找不到技巧,下面我会从简单到复杂分析一下这种题型,可能不全,请见谅。
一.先说一下题意,就是随便输入一句话如“hello my friend”,输出的时候是“dneirf ym olleh”,大家看出什么了没有,就是正着输入,倒着输出,先看一下主要的代码内容吧.#inclu...
分类:
其他好文 时间:
2015-02-14 16:17:23
阅读次数:
140
Problem Description
GTY has n gay friends. To manage them conveniently, every morning he ordered all his gay friends to stand in a line. Every gay friend has a characteristic value ai , to express how...
分类:
其他好文 时间:
2015-02-14 13:47:38
阅读次数:
246
字符串的输出处理
我对字符串的输出是比较头疼的,就是在技巧方面把握的不好,记得刚开始接触字符串的时候,就是要正着输入倒着输。。。。。。都不会,就是找不到技巧,下面我会从简单到复杂分析一下这种题型,可能不全,请见谅。
一.
先说一下题意,就是随便输入一句话如“hello my friend”,输出的时候是“dneirf ym olleh”,大家看出什么了没有,就是正着输入,倒着输...
分类:
其他好文 时间:
2015-02-12 22:55:08
阅读次数:
328
题意:给出一组数字,得到区间[1,a1],[a1+1,a1+a2],[a1+a2+1,a1+a2+a3].....再给出一组数字,求这些数字属于第几个区间注意:记得数组开大,容易超时DescriptionIt is lunch time for Mole. His friend, Marmot, p...
分类:
其他好文 时间:
2015-02-12 20:02:19
阅读次数:
239
Layout
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7613
Accepted: 3658
Description
Like everyone else, cows like to stand close to their friend...
分类:
其他好文 时间:
2015-02-11 18:35:35
阅读次数:
177
Problem Description
GTY has n gay
friends. To manage them conveniently, every morning he ordered all his gay friends to stand in a line. Every gay friend has a characteristic value ai ,
to expr...
分类:
其他好文 时间:
2015-02-08 18:14:38
阅读次数:
114
http://acm.hdu.edu.cn/showproblem.php?pid=4328
Problem Description
Mark bought a huge cake, because his friend ray_sun’s birthday is coming. Mark is worried about how to divide the cake si...
分类:
其他好文 时间:
2015-02-06 11:19:49
阅读次数:
173