题解 | 字符串哈希

字符串哈希

https://www.nowcoder.com/practice/dadbd37fee7c43f0ae407db11b16b4bf

n = int(input())
list = []
for i in range(n):
    s = input()
    if not list:
        list.append(s)
    elif list and s not in list:
        list.append(s)
print(len(list))

    



全部评论

相关推荐

02-25 13:02
中南大学 C++
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务