码迷,mamicode.com
首页 >  
搜索关键字:poj1753flip game    ( 5568个结果
Leetcode 贪心 Jump Game II
Jump Game II  Total Accepted: 16242 Total Submissions: 65802My Submissions Given an array of non-negative integers, you are initially positioned at the first index of the array. Each elem...
分类:其他好文   时间:2014-09-10 01:38:59    阅读次数:227
UVA - 246 10-20-30 (模拟+STL)
Description  10-20-30  A simple solitaire card game called 10-20-30 uses a standard deck of 52 playing cards in which suit is irrelevant. The value of a face card (king, queen,...
分类:其他好文   时间:2014-09-09 20:08:59    阅读次数:327
Pygame 打方块
import traceback import random import pygame from pygame.locals import * pygame.display.init() pygame.font.init() sizes = { "screen" : ( 300, 480 ) } colors = { "font" : ( 138, 69, 252 ), ...
分类:其他好文   时间:2014-09-09 18:19:59    阅读次数:350
PyQt挖地雷游戏学习笔记(1)
想学会PyQt。按习惯做法,从分析学习编程实例着手。 从网上找了个“挖地雷”的源码,大卸八块,仔细解剖,力图学到些东西。 原程序中有bug,如:“棋盘”没有下边界线;挖出全部地雷后,程序没反应,不认定获胜。 我已将其铲掉,可以正常运行了。 程序源码可在此下载 所做修改,都在game_scene.py。共有2处: 一是在函数checkWin()中,原文是: if ((self.mine...
分类:其他好文   时间:2014-09-09 12:51:09    阅读次数:279
Leetcode 贪心 Jump Game
Jump Game  Total Accepted: 18745 Total Submissions: 68916My Submissions Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element...
分类:其他好文   时间:2014-09-09 12:43:49    阅读次数:154
『Lufylegend for HTML5 Game』Chapter 1: Preparation
Lufylegend.js is a HTML5 Game engine. The grammar of lufylegend is similar to ActionScript's. Such as LSprite (Sprite), LBitmap (Bitmap), LBitmapData...
分类:Web程序   时间:2014-09-09 11:57:18    阅读次数:321
Unity 2d Game Development - epub + code
unity2DGame Development By Dave Calabrese2014 | 126 Pages | ISBN: 1849692564Combine Classic 2D With Today's Technology To Build Great Games With Unity...
分类:其他好文   时间:2014-09-09 11:12:08    阅读次数:359
leetcode 之 Jump Game
Jump Game...
分类:其他好文   时间:2014-09-08 10:53:16    阅读次数:245
57. Jump Game && Jump Game II
方法1: 动态规划。(能走到下标为 n-1 位置时,就结束。) 方法二 : 从前往后跳,每一步长内选择选择能跳到下一步长最远的点。 第一个步长为 0 - A[0], 第二步长为 A[0] - max(0+A[0],..., A[0] + A[A[0]]), 从 0->A[0]->maxA[i...
分类:其他好文   时间:2014-09-08 10:50:56    阅读次数:264
[原博客] POJ 2505 A multiplication game 组合游戏
题目链接题意: 有一个数p=1,甲乙两人轮流操作,每次可以把p乘2~9中的一个数,给定一个n,当一个人操作后p>=n,那么这个人赢,问先手是否必胜。必胜状态:存在一种走法走到一个必败状态。必败状态:后继状态都为必胜状态。我们可以知道>=n的数都为必败状态,可以转移到>=n的最小的数为n/9(上取整)...
分类:其他好文   时间:2014-09-08 00:57:26    阅读次数:397
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!