PAT (Basic Level) Practice Python解法 1064 朋友数 n = int(input()) frlist = input().split(' ') otplst = [] numid = [0