题解 | #下厨房#
下厨房
https://www.nowcoder.com/practice/ca5c9ba9ebac4fd5ae9ba46114b0f476
import sys def count_food(str1): uni_food = set() for i in str1: uni_food.add(i) return len(uni_food) input_data = sys.stdin.read().split() print(count_food(input_data))