摘要: 朴素的模式匹配算法(C++) 朴素的模式匹配算法,暴力,容易理解 include using namespace std; int main() { string mainStr, str; cin mainStr str; int i, j, pos = 1, count = 0; for(i = 阅读全文
posted @ 2018-11-26 10:36 MaskWolf 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 题目内容: n(1 int main() { int i, j, total, n; printf("Input n(1 5) { printf("Error!\n"); } else { i = 1; while(1) { total = i; for(j = 0; j int divide(in 阅读全文
posted @ 2018-11-26 10:33 MaskWolf 阅读(3459) 评论(0) 推荐(1) 编辑
摘要: 题目 A代表数字0到9中的前五个数字,Z代表后五个数字,请还原下列乘式。     AZA    \ AAZ \   AAAA AAZZ ZAA \ ZAZAA 输出格式要求: " %d\n" " %d%d\n" 阅读全文
posted @ 2018-11-26 10:31 MaskWolf 阅读(694) 评论(0) 推荐(0) 编辑