cswork / OA打开练习工作台

Pure StorageOA #10

Bakery Quality Control

估计简单可在线判题

考点(AI 标注)哈希计数字符串

Compare each pair consisting of a box item string box and a template string template. The order of characters does not matter, but the count of each item must match; return the number of mismatched boxes.

输入格式

The first line contains n, followed by n lines, each containing two strings box and template that consist only of lowercase a-z and contain no spaces. 0≤n≤1000, and each string has length 1..10.

输出格式

Output the number of mismatched pairs.

样例 1

输入:

3
pcm mcp
ddp dpd
cc c

输出:

1

样例 2

输入:

2
abc cab
aab abb

输出:

1

样例 3

输入:

1
z z

输出:

0