1399: 交集
Memory Limit:256 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:8
Solved:7
Description
[md]
输入两个字符串a和b,计算在a、b中同时出现过的不同字符的个数。
例如:
a='ABCDE',b='ABFG',在a、b中同时出现过的字符有A、B,个数是2。
[/md]
Input
第一行一个字符串a(长度在100以内);
第二行一个字符串b(长度在100以内)。
Output
一个正整数,为在a、b中同时出现过的不同字符的个数。
Sample Input Copy
ABCDE
ABFG
Sample Output Copy
2