这题思路:一开始有n盏灯,且全部为关闭状态,都记为 0 就是 The initial condition : 0 0 0 0 0 …然后之后进行i操作就是对这些灯以是否能被i整除,进行改变状态,如将 0 改为 1 或 将 1 改为 0正如提醒里的After the first operation :...
分类:
其他好文 时间:
2014-07-19 21:00:51
阅读次数:
198
JavaScript Micro-Templatinghttp://ejohn.org/blog/javascript-micro-templating///Simple JavaScript Templating//John Resig - http://ejohn.org/ - MIT Lice...
分类:
其他好文 时间:
2014-07-16 19:04:57
阅读次数:
193
http://poj.org/problem?id=3468A Simple Problem with IntegersTime Limit:5000MSMemory Limit:131072KTotal Submissions:58132Accepted:17704Case Time Limit:...
分类:
其他好文 时间:
2014-07-16 18:43:16
阅读次数:
224
这里讲的是Firefly《暗黑世界》碎片合成的流程部分的代码,这个主要是消息解析的部分,好吧上代码,代码路径app/game/gatenodeapp/compound.py。#coding:utf8'''Created on 2013-3-21物品合成@author: lan (www.9miao....
分类:
其他好文 时间:
2014-07-16 18:30:40
阅读次数:
197
How the virtual networks used by guests work Networking using libvirt is generally fairly simple, and in this section you'll learn the concepts you ne...
分类:
Web程序 时间:
2014-07-16 18:27:29
阅读次数:
311
Unity是由Unity Technologies开发的一个让玩家轻松创建诸如三维视频游戏、建筑可视化、实时三维动画等类型互动内容的多平台的综合型游戏开发工具,是一个全面 整合的专业游戏引擎。Unity类似于Director,Blender game engine, Virtools 或 Torqu...
分类:
其他好文 时间:
2014-07-16 17:08:02
阅读次数:
325
Description
Word puzzles are usually simple and very entertaining for all ages. They are so entertaining that Pizza-Hut company started using table covers with word puzzles printed on them, possibly ...
分类:
其他好文 时间:
2014-07-16 14:42:26
阅读次数:
311
UVA 11859 - Division Game
题目链接
题意:给定一个矩阵,每次能选一行中几个数字,把他们变成他们的因子,最后不能变的人输,问是否能先手必胜
思路:转变成因子等价于删去一些素数,这样问题转化为了Nim游戏
代码:
#include
#include
const int N = 10005;
int t, n, m, num, cnt[N],...
分类:
其他好文 时间:
2014-07-16 14:25:19
阅读次数:
212
吃土豆时间限制:1000ms | 内存限制:65535KB难度:4描述Bean-eating is an interesting game, everyone owns an M*N matrix, which is filled with different qualities beans. Me...
分类:
其他好文 时间:
2014-07-16 12:01:49
阅读次数:
255
仔细查了一下资料。关于多边形三角网剖分,已经有人在网上做了归纳总结。OpenGL的 glutesselation虽然好用,但是据说算法效率不行。比较好的算法还是Ploy2Tri算法。有时间还是得试一试。Triangulation of Simple PolygonsBen Discoe, notes...
分类:
其他好文 时间:
2014-07-16 00:09:32
阅读次数:
640