各リストが一意である場合は、次を試すことができます。
>>> total=np.concatenate((a,b,c))
>>> np.where(np.bincount(total)>2)
(array([1, 5]),)
#Might be faster to do this.
>>>bins=np.bincount(total)
>>>np.arange(bins.shape[0])[bins>2]
array([1, 5])
これらの配列が大きい場合:
>>> tmp=np.concatenate((np.unique(a),np.unique(b),np.unique(c)))
>>> tmp
array([ 1, 2, 5, 6, 12, 1, 3, 5, 7, 8, 14, 19, 1, 2, 5, 6, 9,
22])
>>> ulist,uindices=np.unique(tmp,return_inverse=True)
>>> ulist
array([ 1, 2, 3, 5, 6, 7, 8, 9, 12, 14, 19, 22])
>>> uindices
array([ 0, 1, 3, 4, 8, 0, 2, 3, 5, 6, 9, 10, 0, 1, 3, 4, 7,
11])
>>> np.bincount(uindices)
array([3, 2, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1])
>>> ulist[np.bincount(uindices)>2]
array([1, 5])