题目地址: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3791题目描述: 给定两个长度为n的01串s1,s2,要求用k步,每一步反转s1的m个位置的数码(即0变为1,1变为0),问能有多少种做法,在k步之后将s1变成s....
分类:
其他好文 时间:
2014-07-22 22:53:54
阅读次数:
193
一、题目DescriptionWangpeng is good at drawing. Now he wants to say numbers like “521” to his girlfriend through the game draw something.Wangpeng can’t wr...
分类:
其他好文 时间:
2014-07-22 22:53:15
阅读次数:
242
Apparently BFS is the most obvious one.. but it is not that simple - only constant extra space is provided.Then the only strategy to take is recursion...
分类:
其他好文 时间:
2014-07-22 00:39:35
阅读次数:
258
代码清理:USE[master] GO ALTER DATABASE 表名 SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE 表名 SET RECOVERY SIMPLE --简单模式 GO USE 表名 GO DBCC SHRINKFILE (N...
分类:
数据库 时间:
2014-07-22 00:33:37
阅读次数:
232
WindowsXP: 将C:\Documents and Settings\Administrator\Application Data\Subversion\auth\svn.simple文件夹下的所有文件删除就行了 Application Data是隐藏文件 要先显示隐藏文件 Windows7: 将C:\Users\admi...
分类:
系统相关 时间:
2014-07-20 23:32:44
阅读次数:
455
#include
#include
#include
using namespace std;
struct CNode
{
int L,R;
CNode* pLeft,* pRight;
long long Inc;
long long nSum;
};
CNode Tree[200010];
int nCount=0;
int Mid(CNode* pRoot)...
分类:
其他好文 时间:
2014-07-20 22:38:44
阅读次数:
245
在深入钻研libGDX提供的api之前,让我们创建一个简单的小游戏来初步接触一个每个模块。这里将会主要介绍一些设计思想,而非细节。
我们将会看到如下内容:
1.主要的文件操作
2.清屏
3.绘制图片
4.使用相机
5.主要的输入处理
6.播放声音效果
工程的创建就不在赘述了。
The Game (游戏)
游戏的idea很简单:
1.用桶抓住雨滴
2.桶在屏幕的下方
3.雨...
分类:
其他好文 时间:
2014-07-20 21:30:19
阅读次数:
321
what's xxxIn machine learning, naive Bayes classifiers are a family of simple probabilistic classifiers based on applying Bayes' theorem with strong (...
分类:
其他好文 时间:
2014-07-20 10:11:07
阅读次数:
260
Flip Game
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 30062
Accepted: 13036
Description
Flip game is played on a rectangular 4x4 field with two-sided p...
分类:
其他好文 时间:
2014-07-19 23:42:59
阅读次数:
405
Kirito is stuck on a level of the MMORPG he is playing now. To move on in the game, he's got to defeat allndragons that live on this level. Kirito and...
分类:
其他好文 时间:
2014-07-19 22:20:17
阅读次数:
289