QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#715427#9578. 爱上字典zxkRE 7ms10640kbPython3273b2024-11-06 12:01:142024-11-06 12:01:16

Judging History

你现在查看的是最新测评结果

  • [2024-11-06 12:01:16]
  • 评测
  • 测评结果:RE
  • 用时:7ms
  • 内存:10640kb
  • [2024-11-06 12:01:14]
  • 提交

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

output:


result: