summaryrefslogtreecommitdiff
path: root/progs/a122.py
blob: 584cdc9066a1d078eb841d1352cdf5b9c0029e3b (plain)
1
2
3
4
from operator import eq
def count_same_pair(nums1, nums2):
    result = sum(map(eq, nums1, nums2))
    return result