You are viewing a single comment's thread. Return to all comments →
here's a one-liner 'for the boys'
print( *(['NO','YES'][bool(len(set(input()) & set(input())))] for _ in range(int(input()))),sep='\n')
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
here's a one-liner 'for the boys'