hdu 3695:Computer Virus on Planet Pandora(AC自动机,入门题)

hdu 3695:Computer Virus on Planet Pandora(AC自动机,入门题)