QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#715427 | #9578. 爱上字典 | zxk | RE | 7ms | 10640kb | Python3 | 273b | 2024-11-06 12:01:14 | 2024-11-06 12:01:16 |
Judging History
answer
word_list = input().split()
s = set()
for word in word_list:
if word[-1] in ['.', '?', '!', ',']:
s.add(word[:-1].lower())
else:
s.add(word.lower())
n = int(input())
for i in range(n):
s.discard(input().lower())
print(len(s))
详细
Test #1:
score: 100
Accepted
time: 7ms
memory: 10640kb
input:
I love Liaoning. Love Dalian! 1 love
output:
3
result:
ok single line: '3'
Test #2:
score: -100
Dangerous Syscalls
input:
Sulfox Loves Furry! Fur fur Furred. 2 anthropomorphic furry