QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773787#9578. 爱上字典laonongmin#RE 15ms10712kbPython3289b2024-11-23 10:20:072024-11-23 10:20:07

Judging History

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

  • [2024-11-23 10:20:07]
  • 评测
  • 测评结果:RE
  • 用时:15ms
  • 内存:10712kb
  • [2024-11-23 10:20:07]
  • 提交

answer

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

n = int(input())
lst = []
for i in range(n):
    lst.append(input().lower().strip())

ans = 0
for ss in s:
    if ss:  # 检查字符串是否非空
        ans += lst.count(ss) == 0
print(ans)

詳細信息

Test #1:

score: 100
Accepted
time: 15ms
memory: 10712kb

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: