QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#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)

Details

Tip: Click on the bar to expand more detailed information

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: