给出 个长度为 的字符串,问有且仅有 处不相同的字符串有几对。
第一行:。
以下 行每行一个字符串。
一个数:有多少对有且仅有处不相同的字符串。
4 1 0000 a010 0202 a0e2
0
For these PINs each pair of PINs differs at more than one position.
4 2 0000 a010 0202 a0e2
3
There are three pairs that differ at exactly positions:
对于 的数据,。
对于 的数据,字符串中只包含小写字母 以及 。
对于 的数据,,,所有输入的字符串没有重复,串中的字符仅可能为 或者 。
鸣谢 sachs