QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#773804#9578. 爱上字典laonongmin#WA 13ms10700kbPython3222b2024-11-23 10:23:462024-11-23 10:23:47

Judging History

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

  • [2024-11-23 10:23:47]
  • 评测
  • 测评结果:WA
  • 用时:13ms
  • 内存:10700kb
  • [2024-11-23 10:23:46]
  • 提交

answer

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

# print(s)
n = int(input())
lst = input().lower().split()
ans = 0
for ss in s:
    ans += (lst.count(ss)==0)
print(ans)

详细

Test #1:

score: 100
Accepted
time: 11ms
memory: 10636kb

input:

I love Liaoning. Love Dalian!
1
love

output:

3

result:

ok single line: '3'

Test #2:

score: -100
Wrong Answer
time: 13ms
memory: 10700kb

input:

Sulfox Loves Furry! Fur fur Furred.
2
anthropomorphic furry

output:

5

result:

wrong answer 1st lines differ - expected: '4', found: '5'