码迷,mamicode.com
首页 >  
搜索关键字:friend    ( 1299个结果
(hdu step 4.2.3)Knight Moves(求从起点是否能够到达终点的最小步数)
题目: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
数据结构拾遗(3) --红黑树的设计与实现(下)
完整源代码: 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
UVA 439-Knight Moves(bfs)
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
hdu5172---GTY's gay friends
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
(寒假CF)快
题意:给出一组数字,得到区间[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
POJ3169(最短路+差分约束)
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
HDU 5172 GTY's gay friends(线段树)
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
hdu4328 最大子矩阵问题O(n*m)扫描思想
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!