这里讲的是Firefly《暗黑世界》碎片合成的流程部分的代码,这个主要是消息解析的部分,好吧上代码,代码路径app/game/gatenodeapp/compound.py。#coding:utf8'''Created on 2013-3-21物品合成@author: lan (www.9miao....
分类:
其他好文 时间:
2014-07-16 18:30:40
阅读次数:
197
题意:给一些点,问这些点能够构成多少个凸四边形做法:1.直接判凸包2.逆向思维,判凹包,不是凹包就是凸包了怎样的四边形才是凹四边形呢?凹四边形总有一点在三个顶点的内部,假如顶点为A,B,C,D,则构成四个三角形:ABC,ACD,ABD,BCD,假如某一个三角形(最外的三个顶点)的面积等于另三个三角形...
分类:
其他好文 时间:
2014-07-15 22:54:16
阅读次数:
343
1。第一次觉得很简单,但是超时了 1 public class Solution { 2 public boolean canJump(int[] A) { 3 4 int len=A.length; 5 boolean b[]=new bo...
分类:
其他好文 时间:
2014-07-15 08:42:00
阅读次数:
214
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:
其他好文 时间:
2014-07-14 23:51:56
阅读次数:
425
Tautology
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9302
Accepted: 3549
Description
WFF 'N PROOF is a logic game played with dice. Each die has six...
分类:
其他好文 时间:
2014-07-14 18:45:09
阅读次数:
289
Codechef July Challenge 2014部分题解,包括Garden Game和Dish Owner这两题...
分类:
其他好文 时间:
2014-07-14 18:15:59
阅读次数:
229
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 29921
Accepted: 12975
Description
Flip game is played on a rectangular 4x4 field with two-sided...
分类:
其他好文 时间:
2014-07-14 12:46:46
阅读次数:
229
DescriptionNchildren are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest children are divided into three gr...
分类:
其他好文 时间:
2014-07-13 23:45:13
阅读次数:
268
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 29865
Accepted: 12943
Description
Flip game is played on a rectangular 4x4 field with two-sided p...
分类:
其他好文 时间:
2014-07-12 19:15:30
阅读次数:
136
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18109
Accepted: 6871
Special Judge
Description
The game “The Pilots...
分类:
其他好文 时间:
2014-07-12 17:21:51
阅读次数:
169