Im_hear

导航

2012年4月20日

zoj 1008

摘要: 剪枝要从娃娃抓起,当同一个深度的两个方块相同时,恩,剪掉,以后的dfs要从这个标准起步。source code 阅读全文

posted @ 2012-04-20 20:44 Im_hear 阅读(148) 评论(0) 推荐(0) 编辑

zoj 1008

摘要: View Code 1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 using namespace std; 5 6 int n; 7 int kinds; 8 bool ok; 9 struct square{10 int top,right,bottom,left;11 int counts;12 };13 square way[30];14 square record[30];15 16 void dfs(int pos);17 18 int main()19 { 2 阅读全文

posted @ 2012-04-20 20:32 Im_hear 阅读(196) 评论(0) 推荐(0) 编辑