2014年8月27日
摘要: Lights Against Dudelyhttp://acm.hdu.edu.cn/showproblem.php?pid=477015个位置,所以可以暴力枚举那些放,对于放的再暴力枚举哪个转,对于转的,再枚举转哪个方向。选位置放我用了2进制枚举,选出哪个转和枚举4个方向for循环就行。可以加个小... 阅读全文
posted @ 2014-08-27 22:26 gaolzzxin 阅读(322) 评论(0) 推荐(0) 编辑
摘要: A. Appleman and Easy Taskhttp://codeforces.com/contest/462/problem/A 1 #include 2 const int M=128; 3 char a[M][M]; 4 int dx[]={0,0,1,-1}; 5 int dy[]={... 阅读全文
posted @ 2014-08-27 10:24 gaolzzxin 阅读(134) 评论(0) 推荐(0) 编辑