QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#788076#9578. 爱上字典abovecloud#RE 12ms10592kbPython3261b2024-11-27 15:50:092024-11-27 15:50:11

Judging History

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

  • [2024-11-27 15:50:11]
  • 评测
  • 测评结果:RE
  • 用时:12ms
  • 内存:10592kb
  • [2024-11-27 15:50:09]
  • 提交

answer

a = input()
a = a.replace(',','')
a = a.replace('.','')
a = a.replace('?','')
a = a.replace('!','')
a = a.lower()
# print(a)
st = set(a.split())
n = int(input())
for i in range(n):
    s = input()
    if s in st:
        st.remove(s)
print(len(st))

詳細信息

Test #1:

score: 100
Accepted
time: 12ms
memory: 10592kb

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: