POJ 1936 All in All
摘要:
查找第一个串是否是第二个串的子序列;# include <stdio.h># include <string.h># define N 100005char p[N], t[N];char check(char *x, char *y){ int lenx, leny, i, j; lenx = strlen(x), leny = strlen(y); if (lenx > leny) return 0; for (i = 0, j = 0; j < leny; ++j) { if (x[i] == y[j]) ++i; if (i ... 阅读全文
posted @ 2012-07-09 16:34 getgoing 阅读(165) 评论(0) 推荐(0)
浙公网安备 33010602011771号