#45341: python腦洞大開


x__1 (^_^ 809-34)

學校 : 臺北市立麗山國中
編號 : 294220
來源 : [111.248.235.102]
最後登入時間 :
2025-08-04 11:16:52

for i in range(int(input())):print(len((set(list(map(int,input().replace(',',' ').split()))))&(set(list(map(int,input().replace(',',' ').split()))))))