摘要:
Lights Against Dudelyhttp://acm.hdu.edu.cn/showproblem.php?pid=477015个位置,所以可以暴力枚举那些放,对于放的再暴力枚举哪个转,对于转的,再枚举转哪个方向。选位置放我用了2进制枚举,选出哪个转和枚举4个方向for循环就行。可以加个小... 阅读全文
摘要:
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[]={... 阅读全文