CF1000A Codehorses T-shirts
题目描述
**题目大意:**
$n$个字符串和$n$个模板串,在$1s$的时间内你可以选择一个字符串(不是模板串)修改任意多的字符,但是不能删除或增加字符,问至少需要多少s使得字符串变为模板串,注意不考虑串的顺序,即最后每个字符串出现次数=这个串在模板串中的出现次数
输入格式
第一行一个整数,$n$,$n
输出格式
一个整数,即最少时间
感谢@守望 提供翻译
说明/提示
In the first example Ksenia can replace "M" with "S" and "S" in one of the occurrences of "XS" with "L".
In the second example Ksenia should replace "L" in "XXXL" with "S".
In the third example lists are equal.