1)头文件 game.h#ifndef GAME_H#define GAME_H// base classclass CCreature {protected: int m_nLifePower, m_nPower;public: virtual void Attack(CCreatur...
分类:
编程语言 时间:
2015-06-24 14:21:40
阅读次数:
142
想退出ACM了ZOJ 3573 Under Attack两个值最大的位置居然可以相同... 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 15000 + 10; 7 int A[N], nu...
分类:
其他好文 时间:
2015-06-22 16:12:00
阅读次数:
182
备忘录模式就是能够存储当前状态,类似于玩游戏的时候可以不断的读档,同时在玩了新的游戏的时候,又可以更新到档案里。
#include
#include
using namespace std;
//需保存的信息
class Memento
{
public:
int m_vitality; //生命值
int m_attack; //进攻值
in...
分类:
编程语言 时间:
2015-06-18 22:17:28
阅读次数:
213
问题名称:
Slow HTTP Denial of Service Attack
问题URL
http://10.238.*.*:58***
风险等级:
高
问题类型:
服务器配置类
漏洞描述:
利用的HTTP POST:POST的时候,指定一个非常大的
content...
分类:
Web程序 时间:
2015-06-16 11:06:00
阅读次数:
1070
L51: N-Queens
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that
no two queens attack each other.
Given an integer n, return all distinct solutions to the n-qu...
分类:
其他好文 时间:
2015-06-09 17:32:04
阅读次数:
140
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

Given an integer n, return...
分类:
其他好文 时间:
2015-06-09 11:54:45
阅读次数:
125
Given an m x n chessboard where you want to place chess knights. You have to find the number of maximum knights that can be placed in the chessboard such that no two knights attack each other.Those who...
分类:
其他好文 时间:
2015-06-08 17:32:11
阅读次数:
118
Description
You are the King of Byteland. Your agents have just intercepted a batch of encrypted enemy messages concerning the date of the planned attack on your island. You immedietaly send for ...
分类:
编程语言 时间:
2015-06-08 13:30:27
阅读次数:
129
N-QueensThen-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all...
分类:
编程语言 时间:
2015-06-07 17:11:36
阅读次数:
146
A rook is a piece used in the game of chess which is played on a board of square grids. A rook can only move vertically or horizontally from its current position and two rooks attack each other if one...
分类:
其他好文 时间:
2015-06-04 10:00:21
阅读次数:
127