DescriptionFarmer John and Betsy are playing a game with N (1 #includeusing namespace std;int fa[30001]={0},sum[30001]={0},len[30001]={0};int rool(int...
分类:
其他好文 时间:
2014-11-05 16:27:40
阅读次数:
208
DescriptionNow and then you play the following game with your friend. Your friend writes down a sequence consisting of zeroes and ones. You choose a c...
分类:
其他好文 时间:
2014-11-05 16:26:25
阅读次数:
179
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-11-05 16:21:24
阅读次数:
141
0. 引子
一直想随便写写自己关于水面效果2D实现的一些了解,可惜各种原因一直拖沓,幸而近来有些事情终算告一段落,自己也有了一些闲暇时间,于是便有了这篇东西 :)
1. 概述
关于水面效果的实现方法,google一下非常之多,目前的很多游戏也有非常好的呈现,其中最令我印象深刻的当数《Crysis》~
自己由于工作原因接触过一段时间的Cr...
分类:
其他好文 时间:
2014-11-05 13:11:05
阅读次数:
347
Game
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 489 Accepted Submission(s): 378
Problem Description
Here is a game for two ...
分类:
其他好文 时间:
2014-11-05 09:17:18
阅读次数:
252
令f(i)为i分掷色子结束的次数期望,已知f(i|i>N) = 0,那么很容易得到:因为初始状态是0分,所以答案就是f(0)。我们这里我们采取一个比网上题解更有趣的方法来解出这个式子:令,那么f(i) = ∑pkf(i+k) + A,我们把左右两端同时除以A,得到f(i)/A = ∑pkf(i+k)...
分类:
其他好文 时间:
2014-11-05 01:54:40
阅读次数:
243
http://acm.hdu.edu.cn/showproblem.php?pid=3696
Farm Game
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 62768/32768 K (Java/Others)
Total Submission(s): 598 Accepted Submission(s): ...
分类:
其他好文 时间:
2014-11-05 00:31:13
阅读次数:
119
【题意简述】:输入的k和p,k表示有几个字母,也就是输入有几行,p表示每个字母有几个,是以坐标的形式出现的(x,y).现在让我们将相同的字母划分在一个矩形块中,问能否实现。
【分析】:唉,低级失误!!!记住!积累!
/*
Date: 2014/11/04
Time: 21:38
By : VID
Attention:
坐标的建立是理解这个问题,梳理思路的关键。
我的坐...
分类:
其他好文 时间:
2014-11-04 22:45:41
阅读次数:
187
题目地址:HDU 3622
先二分半径,然后小于该半径的不能选,对这些不能选的点对进行加边。然后判断可行性即可。
代码如下:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#d...
分类:
其他好文 时间:
2014-11-04 21:12:55
阅读次数:
221
hdu 5090 Game with Pearls(最大匹配)—— black 的专栏 —— waShaXiu...
分类:
其他好文 时间:
2014-11-04 17:38:26
阅读次数:
267