题解 | #下厨房#
下厨房
https://www.nowcoder.com/practice/ca5c9ba9ebac4fd5ae9ba46114b0f476
lines = [] while True: try: line = input() lines.extend(line.split()) except EOFError: break ans = len(set(lines)) print(f"{ans}")
下厨房
https://www.nowcoder.com/practice/ca5c9ba9ebac4fd5ae9ba46114b0f476
lines = [] while True: try: line = input() lines.extend(line.split()) except EOFError: break ans = len(set(lines)) print(f"{ans}")
相关推荐