第一行一个整数n1sns10000。接下来n行每行一个字符串保证每个字符串长度不超过10请给出输出描述 输出一个整数表示他记住了多少个单词 用Python求解上述问题
n = int(input()) words = set() for _ in range(n): word = input() words.add(word) print(len(words))
原文地址: https://www.cveoy.top/t/topic/iIj7 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
n = int(input()) words = set() for _ in range(n): word = input() words.add(word) print(len(words))
原文地址: https://www.cveoy.top/t/topic/iIj7 著作权归作者所有。请勿转载和采集!