2013年11月16日

CF212DIV2

摘要: A题: 题目呢连接:http://codeforces.com/contest/362/problem/A。刚开始想用DFS搜索,但是忘记了:可以move through"#"这个条件!就是说可以走到"#"(很关键),但不能在这里相聚!直接委掉了!先贴下DFS的代码写的很垃圾! 1 #include 2 #include 3 #include 4 5 int x[4]={-2,2,-2,2}; 6 int y[4]={-2,-2,2,2}; 7 8 int t; 9 char s[10][10];10 int v[10][10],b[10][10];11 阅读全文

posted @ 2013-11-16 00:56 forgot93 阅读(254) 评论(0) 推荐(0) 编辑

导航