|
|
〇〇 发表于 2014-9-17 21:34 ![]()
select * from x where not exist
select 1 from bad_dict where instr(x,badstr)>0)
穷举法用c都跑不出来
,看来要及时调步
#include <stdio.h>
int main()
{
char s[10][10]={"0","11","222","3333","44444","555555","6666666","77777777","888888888"};
char s1[11];
int x,i,c=0;
for(x=1223334444;x<9999999999;x++)
for(i=0;i<9;i++)
{
if (strstr(itoa(x,s1,10),s)!=NULL)continue;
}
c++;
printf("%d\n",c);
return 1;
} |
|