Problem HHelp is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned fo...
分类:
其他好文 时间:
2014-07-22 23:26:57
阅读次数:
301
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 maximu...
分类:
其他好文 时间:
2014-07-22 00:12:36
阅读次数:
156
Help Me with the Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3344
Accepted: 2145
Description
Your task is to read a picture of a chessboard positi...
分类:
其他好文 时间:
2014-07-21 23:38:44
阅读次数:
265
直接上代码吧 1 package com.mygdx.game; 2 3 import com.badlogic.gdx.Gdx; 4 import com.badlogic.gdx.graphics.g2d.Animation; 5 import com.badlogic.gdx.graphic....
分类:
其他好文 时间:
2014-07-21 23:30:20
阅读次数:
360
博弈论里面一个非常重要的结论:如果前一个状态所有可能都是必败态,那么当前状态一定是必胜态。如果前一个状态所有可能有一个是必胜态,那么当前状态一定是必败态。POJ 2484 A Funny Game博弈游戏里面后手经常占据优势。除了A可以一次性全部拿光的情况,其他时候B都可以采取与A相同的策略,这样每...
分类:
其他好文 时间:
2014-07-21 23:30:20
阅读次数:
292
点击打开链接
题意:给你一张N个节点的无向图,然后给出M条边,给出第 I 条边到第J条边的距离。然后问你是否存在子环,如果存在,则输出最成环的最短距离和
解析:构图:选定源点及汇点,然后将源点至个点流量置为1,花费置为0.然后使用最小费用流,当返回值流量和,即flow
其余和tour一样求法,处理一下某两点距离为最短距离即可。
#include
#include
#include
#...
分类:
其他好文 时间:
2014-07-21 22:28:07
阅读次数:
251
Lighttpd绑定一个端口一般都是下面的方法.备忘一下.server.port=80如果需要绑定多个端口,可以这样.$SERVER["socket"]=="0.0.0.0:82"{
server.document-root="/oldyzzt_s2/webroot/game/"
}
$SERVER["socket"]=="0.0.0.0:83"{
server.document-root="/oldyzzt_s3/webroot/game/"
}
分类:
其他好文 时间:
2014-07-21 19:27:23
阅读次数:
616
Problem Description
Eight-puzzle, which is also called "Nine grids", comes from an old game.
In this game, you are given a 3 by 3 board and 8 tiles. The tiles are numbered from 1 to 8 and each ...
分类:
其他好文 时间:
2014-07-21 16:22:02
阅读次数:
264
在深入钻研libGDX提供的api之前,让我们创建一个简单的小游戏来初步接触一个每个模块。这里将会主要介绍一些设计思想,而非细节。
我们将会看到如下内容:
1.主要的文件操作
2.清屏
3.绘制图片
4.使用相机
5.主要的输入处理
6.播放声音效果
工程的创建就不在赘述了。
The Game (游戏)
游戏的idea很简单:
1.用桶抓住雨滴
2.桶在屏幕的下方
3.雨...
分类:
其他好文 时间:
2014-07-20 21:30:19
阅读次数:
321
UVA 239 - Tempus et mobilius. Time and motion
题目链接
题意:这题题意也是吊得飞起,看了老半天,大概是这样:
有一个放球的队列,和3个轨道(说白了就是栈),一个容纳5,1个12,1个12,每1分钟队列出一个小球,放入栈,如果放入5的满了,就把5的放回队列,头一个放入12的,如果12的满了,就把12的放回队列,头一个放入另一个12的栈,如果...
分类:
其他好文 时间:
2014-07-20 00:35:23
阅读次数:
179