题解 | #下厨房#
下厨房
https://www.nowcoder.com/practice/ca5c9ba9ebac4fd5ae9ba46114b0f476
import sys lines = sys.stdin.readlines() l=[] for i in lines: i = i.strip('\n') l = l+i.split(' ') print(len(set(l)))
下厨房
https://www.nowcoder.com/practice/ca5c9ba9ebac4fd5ae9ba46114b0f476
import sys lines = sys.stdin.readlines() l=[] for i in lines: i = i.strip('\n') l = l+i.split(' ') print(len(set(l)))
相关推荐