// ■文字列照合における力任せ法,KMP法,BM法の比較 #include "stdio.h" #include "string.h" int brute(char str[], char pat[]){ int p1,p2,N1,N2; p1=p2=0;N1=strlen(str); N2=strlen(pat); printf("\n 力任せ法におけるp1の値 : "); while(p1