码迷,mamicode.com
首页 >  
搜索关键字:poj1753flip game    ( 5568个结果
poj 1222 EXTENDED LIGHTS OUT 高斯消元法
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
ACM&贪心算法
// Source : https://oj.leetcode.com/problems/jump-game/// Author : wizzhangquan@gmail.com// Date : 2014-11-22/**************************************.....
分类:编程语言   时间:2014-11-22 15:49:35    阅读次数:166
Jump Game II
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
Unity-Physics.Raycast
关于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
POJ 2348 Euclid's Game 组合游戏
题目大意:有两个人玩游戏,有两堆石子,每次一个人要从其中一堆石子中拿走一些石子,当出现有一对石子变成0的时候这个人就输了,另一个人就赢了。给出初始石子有多少,问谁能赢。 思路:基础的组合游戏的判定问题,这个题没有给数据范围,非常的坑爹,据说需要long long。 第一次做组合游戏的题目,想想还有些小激动呢。昨天听同学讲了讲,我来现学现卖一下: 由于组合游戏的公平性,那么:如果一个状...
分类:其他好文   时间:2014-11-21 10:43:42    阅读次数:207
ACM学习历程——POJ3295 Tautology(搜索,二叉树)
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
js获取url一部分
首先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
HDU 3094 A tree game 树的删边游戏
叶子节点的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 2150 Fire Game 【技巧BFS】
题目: fzu 2141 Sub-Bipartite Graph (贪心)...
分类:其他好文   时间:2014-11-20 12:01:17    阅读次数:186
ouc shanghairegion#1A
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!