码迷,mamicode.com
首页 >  
搜索关键字:jump game ii    ( 12386个结果
HDU 3649 New Game
HDU 3649 New Game 题目大意: 首先告诉你0或1,0表示红色先手,1表示黑色先手,接下来四个数字表示 红方 A,B,C,D四个子的位置,在接下来四个数字表示黑方 A,B,C,D四个子的位置。 游戏规则如下: (1) the piece red acm can be placed on A1~,A2,A3,A4,A5;the piece black acm A6~A10; (2) the piece red bahamas can place on B1~B5; the piece bla...
分类:其他好文   时间:2014-06-05 04:21:31    阅读次数:295
LeetCode: Remove Duplicates from Sorted Array II [080]
【题目】 Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function should return length = 5, and A is now [1,1,2,2,3]. 【题意】 给定一个有序数组,给数组去重,和Remove Duplicates from...
分类:其他好文   时间:2014-06-03 05:36:24    阅读次数:219
HLG 2116 Maximum continuous product (最大连续积 DP)
链接:  http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2116 Description Wind and his GF(game friend) are playing a small game. They use the computer to randomly generated a nu...
分类:其他好文   时间:2014-06-03 02:17:13    阅读次数:252
LeetCode: Search in Rotated Sorted Array II [081]
【题目】 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-03 01:55:38    阅读次数:173
[简单博弈] hdu 1525 Euclid's Game
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1525 Euclid's Game Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1832    Accepted S...
分类:其他好文   时间:2014-06-03 01:38:06    阅读次数:255
hdu-4605-Magic Ball Game-线段树+离线操作
以前用树状数组做过一次,现在用线段树再刷一次。。。 首先必须先离散化。。。 然后建立2颗线段树,第一颗表示往左走,每个节点的值的分布。       第二颗表示往右走,每个节点的值的分布。 然后根据左右走的关系,判断出x,y的值。 #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #inclu...
分类:其他好文   时间:2014-06-03 01:25:54    阅读次数:315
μCOS-II系统之事件(event)的使用规则及MUTEX实例
*************************************************************************************************************************** 作者:EasyWave 时间:2014.05.31 类别:μC/OS-II-操作系统...
分类:其他好文   时间:2014-06-01 09:39:49    阅读次数:356
μCOS-II系统之事件(event)的使用规则及Semaphore实例
*************************************************************************************************************************** 作者:EasyWave                                                时间:2014.05.31...
分类:其他好文   时间:2014-06-01 09:13:14    阅读次数:258
μCOS-II系统之事件(event)的使用规则及Semaphore的互斥量用法
*************************************************************************************************************************** 作者:EasyWave                                                时间:2014.05.31...
分类:其他好文   时间:2014-06-01 09:07:52    阅读次数:305
LeetCode: Remove Duplicates from Sorted List II [083]
【题目】 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1->1->2->3, return 2->3. 【题意】 给定一个有序链表,删出其中重复出现的值...
分类:其他好文   时间:2014-05-31 21:14:11    阅读次数:333
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!