
枚举
文章平均质量分 67
LeeBooL
这个作者很懒,什么都没留下…
展开
-
POJ1753
#include #include #include using namespace std; int num; bool flag; //移动 int fx[5] = {-1,1,0,0,0}; int fy[5] = {0,0,-1,1,0}; bool graph[6][6] = {false}; void flip(int x,原创 2014-07-12 14:26:49 · 304 阅读 · 0 评论 -
POJ2956
#include #include #include using namespace std; struct point { int r,c; }now; point st[20]; bool graph[6][6] = {false}; char s; bool falg = false; int sum;原创 2014-07-13 14:23:09 · 473 阅读 · 0 评论 -
POJ2965
看了实在佩服 [cpp] view plaincopy /*既然说要把所有的开关变成是打开的话,那么怎么样才能做而且又不影响其他的布局呢?如果没遇到一个‘+’即关闭的开关,我们就把这个开关所在行和列包括它本身(本身只操作一次)都操作一次的话。那么可以计算它本身的状态变化次数为7,其同在一行和一列的元素则状态变化为4,余下的状态转化都是2.可以得到这个方法原创 2014-07-13 14:27:09 · 376 阅读 · 0 评论 -
POJ1328
#include #include #include #include #include using namespace std; struct point { double x,y; }stl[1005]; struct node { double x1,x2; }cir[1005]; int cmp(原创 2014-07-13 16:38:55 · 347 阅读 · 0 评论