码迷,mamicode.com
首页 >  
搜索关键字:jump game ii    ( 12386个结果
[u/COS-II_安装]在PC机上的移植
一.下载Borland C++ 4.5或Borland C++ 5.0和Turbo Assembler 5.0(TASM 5.0)二.安装Borland C++ 4.5/5.0(我的安装在C:\BC45)三.将TASM 5.0安装在Borland C++ 4.5/5.0相同的目录下(C:\BC45)...
分类:其他好文   时间:2014-06-19 08:46:51    阅读次数:312
正则表达式入门(c#)
本文是对该教程的学习练习http://www.jb51.net/tools/zhengze.html1.\bContent\bstatic void Main(string[] args){ string str = "Act game - Uncharted3, act Game - God...
分类:其他好文   时间:2014-06-19 06:02:58    阅读次数:200
acd The Game about KILL(和约瑟夫归则一样,归律)
Problem DescriptionTeacher HU and his 40 students were trapped by the brigands. To show their power, the head of the brigands want to select one peopl...
分类:其他好文   时间:2014-06-17 00:28:32    阅读次数:362
leetcode——Remove Duplicates from Sorted List II 删除排序字符串中重复字符(AC)
没什么太多讲的,可以使用递归和迭代两种方法来做,要仔细考虑各种输入情况。code如下:...
分类:其他好文   时间:2014-06-15 15:09:59    阅读次数:145
leetcode——Reverse Linked List II 选择链表中部分节点逆序(AC)
处理这个问题还是挺复杂的,需要考虑很多边界的测试用例。我总体的思路是先用循环标记m前一个节点和n后边一个节点,把n后边的节点首先作为当前逆转节点的pre,然后循环n-m次完成所选节点部分的逆序,然后将标记的m节点前一个节点指向逆序后部分的头节点即可。要考虑各种特殊情况,另外考虑即可。code如下:...
分类:其他好文   时间:2014-06-15 13:44:17    阅读次数:323
UESTC 915 方老师的分身II --最短路变形
即求从起点到终点至少走K条路的最短路径。用两个变量来维护一个点的dis,u和e,u为当前点的编号,e为已经走过多少条边,w[u][e]表示到当前点,走过e条边的最短路径长度,因为是至少K条边,所以大于K条边的当做K条边来处理就好了。求最短路的三个算法都可以做,我这里用的是SPFA,比较简洁。代码:#...
分类:其他好文   时间:2014-06-15 12:09:25    阅读次数:248
Codeforces Round #245 (Div. 2) B - Balls Game
暴利搜索即可#include #include #include using namespace std;int main(){ int n,k,x; cin >> n >> k >> x; vector c(n); for(int i = 0 ; i > c[i]; ...
分类:其他好文   时间:2014-06-14 18:47:42    阅读次数:206
CycloneII之EDA及学术开发功能描述
1.概述 同Stratix/Cyclone。2.逻辑单元(Logic Cell)描述在以前的架构中(比如Cyclone),单个LE包括一个组合逻辑和寄存器。对于Cyclone II来说,组合逻辑和寄存器被单独分开到两个部分,原语创建的时候也不象Cyclone和Stratix那样,而是通过lcell_...
分类:其他好文   时间:2014-06-14 18:25:09    阅读次数:381
NYOJ 284 坦克大战 【BFS】+【优先队列】
坦克大战 时间限制:1000 ms  |  内存限制:65535 KB 难度:3 描述 Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now.  What we are dis...
分类:其他好文   时间:2014-06-14 14:30:01    阅读次数:274
[LeetCode] Search in Rotated Sorted Array II [36]
题目 Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. 原题链接(点我) 解题思路 这题和Search in Rotated Sorted Array问题类似,...
分类:其他好文   时间:2014-06-14 12:44:18    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!