P3002 [USACO10DEC] Threatening Letter G
题目描述
FJ has had a terrible fight with his neighbor and wants to send him a nasty letter, but wants to remain anonymous. As so many before him have done, he plans to cut out printed letters and paste them onto a sheet of paper. He has an infinite number of the most recent issue of the Moo York Times that has N (1
输入格式
\* Line 1: Two space-separated integers: N and M
\* Lines 2..?: N letters laid out on several input lines; this is the text of the one copy of the Moo York Times. Each line will have no more than 80 characters.
\* Lines ?..?: M letters that are the text of FJ's letter. Each line will have no more than 80 characters.
输出格式
\* Line 1: The minimum number of cuts FJ has to make to create his message