The game “The Pilots Brothers: following the stripy
elephant” has a quest where a player needs to open a refrigerator.There are 16
handles on the refr...
分类:
其他好文 时间:
2014-05-26 22:16:23
阅读次数:
329
Strategic GameTime Limit: 20000/10000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
4697Accepted Submission(s): 2125Pr...
分类:
其他好文 时间:
2014-05-26 21:02:16
阅读次数:
278
这是一道很常见的题,看题的时候看漏了root to
leaf的leaf,以为只要从root开始就可以了,太不仔细了,sigh~ 其实类似的题目在Career
Cup的4.9,那个题是任意路径,不必从root到leaf,要求更高。一直以来我都有这样的疑问,迭代的变量(如下例中的path、total)如...
分类:
其他好文 时间:
2014-05-26 12:09:21
阅读次数:
329
原题地址:https://oj.leetcode.com/problems/n-queens-ii/题意:和N-Queens这道题其实是一样的,只不过这次要求返回的时N皇后的解的个数的问题。解题思路:上道题使用了递归回溯的解法,这道题我们可以使用非递归回溯来解决,因为如果使用递归回溯来解决,那么代码...
分类:
编程语言 时间:
2014-05-26 08:14:55
阅读次数:
288
IDE: MDK V4+
MCU: LPC17xx(Cortex-M3)
RTOS: µC/OS-II
升级顺序:V2.52->V2.62->V2.76->V2.86->V2.91
V2.52
一、startup*.s (startup_lpc17xx.s)
1. 更改两个中断服务函数名称
...
分类:
其他好文 时间:
2014-05-26 06:12:20
阅读次数:
326
看到这种填合适的运算符之类的题目,第一感觉就是用dfs来枚举递归。
但邮箱道题目算法设计里面那么大的数据,想到有可能会超时。
用最直白的简单的方法dfs一遍后交上,超时。
——需要判重和边界结束条件。
在所有能剪断的地方痛下狠手,狂加特判+return;
然后就炒鸡快了
#include
#include
#include
#define ADD 32000
using namespa...
分类:
其他好文 时间:
2014-05-23 02:06:42
阅读次数:
285
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of ju...
分类:
其他好文 时间:
2014-05-22 17:02:20
阅读次数:
244