摘要: 题目链接好郁闷的半下午+一晚上。。做了个本应用BFS的题,我用DFS写了130+,结果怎么都是超时。。。烦了。。。。刷个UVA,挺简单的题,防止没完没了的WA,做的还是挺谨慎的,感觉用的做法比较麻烦不知能否用scanf输入,无所谓了,还好1A。 1 #include <stdio.h> 2 #include <string.h> 3 int main() 4 { 5 char p1[1000],p2[1000],o1[1000],o2[1000],k1[1000],k2[1000]; 6 int n,i,j,l1,l2,z,e; 7 scanf("%d%*c& 阅读全文
posted @ 2012-06-01 21:31 Naix_x 阅读(301) 评论(0) 推荐(0) 编辑