摘要: data segmentstr1 db 100len1 db ? db 100 dup(?)str2 db 100len2 db ? db 100 dup(?)inf1 db 0ah, 0dh, 'Input string1:','$'inf2 db 0ah, 0dh, 'Input string2:','$'inf3 db 0ah, 0dh, 'string1 = string2 ? 'judg db 20h, 20h, 20h, '$'data endsstack segment stack d 阅读全文
posted @ 2011-10-22 20:58 AC_Von 阅读(3876) 评论(0) 推荐(0) 编辑
摘要: /*从昨天下午看这道题,一直到现在,以前做过一个类似连连看的题,跟这题差不多,就按那个思路写了,一步一步的搜,我晕,把bfs写暴也没能AC。上午请教牛人,说bfs时不要搜步数,直接搜直线数。就是一条路走到头,不撞南墙不死心(大体是这个意思^_^)。然后就是正常的bfs写法。入队列,出队列。。。 ps:注意标点符号T_T.*///My Code:#include <iostream>#include <cstring>#include <cstdio>using namespace std;const int N = 80;struct node{ int x 阅读全文
posted @ 2011-10-22 15:36 AC_Von 阅读(570) 评论(0) 推荐(0) 编辑