QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#773792#9578. 爱上字典ruoye123456RE 7ms10692kbPython3289b2024-11-23 10:21:032024-11-23 10:21:10

Judging History

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

  • [2024-11-23 10:21:10]
  • 评测
  • 测评结果:RE
  • 用时:7ms
  • 内存:10692kb
  • [2024-11-23 10:21:03]
  • 提交

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)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 10692kb

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: