Chanel brand is taking the high road, stylish simplicity, simple and comfortable, pure style. "Fashion passes, style remains" still the guiding force ...
分类:
其他好文 时间:
2014-07-22 00:27:37
阅读次数:
268
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
1 创建型模式
单独对对象的创建进行研究,高效的创建对象就是创建型模式讨论的问题。创建型设计模式有6种:
简单工厂模式(simple factory);
工厂方法模式(factory method);
抽象工厂模式(abstract factory);
创建者模式(Builder);
原型模式(Prototype);
...
分类:
其他好文 时间:
2014-07-22 00:06:33
阅读次数:
232
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
见过很多人写c代码、用结构体将各种要素封装、如下转载一个使用epoll的例子:
//
// a simple echo server using epoll in linux
//
// 2009-11-05
// 2013-03-22:修改了几个问题,1是/n格式问题,2是去掉了原代码不小心加上的ET模式;...
分类:
编程语言 时间:
2014-07-21 13:48:46
阅读次数:
312