QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773513#9578. 爱上字典laonongmin#RE 8ms10772kbPython3294b2024-11-23 09:12:212024-11-23 09:12:29

Judging History

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

  • [2024-11-23 09:12:29]
  • 评测
  • 测评结果:RE
  • 用时:8ms
  • 内存:10772kb
  • [2024-11-23 09:12:21]
  • 提交

answer

s = input().lower().split()
s = [ss.strip('.').strip('!').strip(',').strip('?') for ss in s]

# print(s)
n = int(input())
ans = len(s)
lst = []
for i in range(n):
    lst.append(input().lower())
    # print(tmp)
lst = list(set(lst))
for pp in lst:
    ans -= s.count(pp)
print(ans)

详细

Test #1:

score: 100
Accepted
time: 8ms
memory: 10772kb

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: