EXTENDED LIGHTS OUT
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 6872
Accepted: 4532
Description
In an extended version of the game Lights Out, is a puz...
分类:
其他好文 时间:
2014-11-22 17:28:32
阅读次数:
217
// Source : https://oj.leetcode.com/problems/jump-game/// Author : wizzhangquan@gmail.com// Date : 2014-11-22/**************************************.....
分类:
编程语言 时间:
2014-11-22 15:49:35
阅读次数:
166
My naive $O(n^2)$ running time solution:class Solution {public: int jump(int A[], int n) { if(1 == n) return 0; int maxL = (1= (i-j) ...
分类:
其他好文 时间:
2014-11-22 02:02:12
阅读次数:
198
关于API看一下链接
http://game.ceeger.com/Script/Physics/Physics.Raycast.html
? static function Raycast (origin : Vector3, direction : Vector3, out
hitInfo : RaycastHit, distance : float = Mathf...
分类:
编程语言 时间:
2014-11-21 14:29:06
阅读次数:
224
题目大意:有两个人玩游戏,有两堆石子,每次一个人要从其中一堆石子中拿走一些石子,当出现有一对石子变成0的时候这个人就输了,另一个人就赢了。给出初始石子有多少,问谁能赢。
思路:基础的组合游戏的判定问题,这个题没有给数据范围,非常的坑爹,据说需要long long。
第一次做组合游戏的题目,想想还有些小激动呢。昨天听同学讲了讲,我来现学现卖一下:
由于组合游戏的公平性,那么:如果一个状...
分类:
其他好文 时间:
2014-11-21 10:43:42
阅读次数:
207
DescriptionWFF 'N PROOF is a logic game played with dice. Each die has six faces representing some subset of the possible symbols K, A, N, C, E, p, q,...
分类:
其他好文 时间:
2014-11-20 21:35:28
阅读次数:
273
首先url是这样的,有很多的参数,可是每次执行js的时候会重复添加一些参数 这样获取最基础的url之后再重新拼接获取要跳转的连接。
1.
var newurl = '';
function demo () {
var beforeurl = 'http://test.eweida.com/index.php?g=Wap&m=Game&a=index&token=cq1395027988&typ...
分类:
Web程序 时间:
2014-11-20 18:48:58
阅读次数:
249
叶子节点的SG值为0 非叶子节点的SG值为为它的所有子节点的SG值加1 后的异或和
#include
#include
#include
using namespace std;
vector G[100010];
int sg[100010];
int dfs(int x, int f)
{
if(sg[x] != -1)
return sg[x];
if(!G[x].size...
分类:
其他好文 时间:
2014-11-20 15:25:46
阅读次数:
200
题目:
fzu 2141 Sub-Bipartite Graph (贪心)...
分类:
其他好文 时间:
2014-11-20 12:01:17
阅读次数:
186
A -Game with PearlsTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionTom and Jerry are playing a game with tube...
分类:
其他好文 时间:
2014-11-19 23:49:13
阅读次数:
189