摘要:
输入主串a,模式b b在a中的位置 1.在串a和串b中设置比较的下标i=0,j=0; 2.重复下述操作,直到a或b的所有字符均比较完毕: 2.1如果a[i]等于b[i],继续比较a和b的下一对字符; 2.2负责,下标i和j分别回溯,开始下一趟匹配; 3.如果b中所有字符均比较完,则匹配成功,返回本趟 阅读全文
摘要:
Problem H. Math Game Input file: standard input Output file: standard output Time limit: 1 seconds Memory limit: 128 megabytes 大家都知道马大佬很皮 马大佬很喜欢研究数字的数 阅读全文