题意:给定一个n*n的表格,在一个角上放入一块石头,然后两个人轮流移动石头,只能水平和竖直移动石子,而且不能移到已经访问的格子,最后没法移动的玩家为输者。现在输入任意的n输出谁输谁胜。这个随便画两个就能很容易的推算出胜负。
太简单的水题。...
分类:
其他好文 时间:
2014-05-08 15:41:33
阅读次数:
294
一直想用诸如node k =
node(args1,args2...argsN)的方式来初始化一个结构体,可以简化很大一部分代码,开始不知道怎么写,后来问人家,总结出一套代码如下:struct
Point{ int x,y; Point(int _x_,int _y_) { ...
分类:
其他好文 时间:
2014-05-08 11:36:15
阅读次数:
227
1) BestHTML5and javascript game engine Library-
Impactjs2) Best HTML5 and javascript game engine Library - Craftyjs3) Best HTML5
and javascript game e...
分类:
编程语言 时间:
2014-05-08 05:37:13
阅读次数:
360
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 04:44:47
阅读次数:
237
#include
#include
using namespace std;
class Point
{
public:
Point(double x=0,double y=0);
void setPoint(double,double);
double getx()
{
return x;
}
double gety()
...
分类:
其他好文 时间:
2014-05-08 03:42:17
阅读次数:
273
Hotter Colder
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2343
Accepted: 981
Description
The children's game Hotter Colder is played as follows. Player A...
分类:
其他好文 时间:
2014-05-07 23:39:58
阅读次数:
590
#include
#include
using namespace std;
class Point //定义坐标点类
{
public:
Point():x(0),y(0) {};
Point(double x0, double y0):x(x0),y(y0){};
void PrintPoint(); //输出点的信息
double getx()
{
...
分类:
其他好文 时间:
2014-05-07 16:14:20
阅读次数:
267