QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#788076 | #9578. 爱上字典 | abovecloud# | RE | 12ms | 10592kb | Python3 | 261b | 2024-11-27 15:50:09 | 2024-11-27 15:50:11 |
Judging History
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