摘要: 这题说的是一在一个N*M的房间内,然后有些房间不能被灯光照亮,有一个灯可以转动方向,其他的灯只能在固定一个方向上,因为数据比较小,所以比较水,直接暴力的进行枚举就好了,但是还是 wa了很久,原因没认真读题,然后就是小细节的错误,在标记的时候背后面的,点给覆盖了,(考虑不周全)。#include #include#includeusing namespace std;const int MAXX=1000000;struct point{ int x,y; point (int a=0,int b=0){x=a;y=b;}};bool operator ==(const point &. 阅读全文
posted @ 2013-12-28 14:53 来自大山深处的菜鸟 阅读(347) 评论(0) 推荐(0) 编辑