QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#795651 | #9578. 爱上字典 | RegtLu# | RE | 11ms | 10576kb | Python3 | 380b | 2024-11-30 22:46:14 | 2024-11-30 22:46:15 |
Judging History
answer
import sys
input=lambda:sys.stdin.readline().rstrip()
d=dict()
sentence=[x.lower() for x in input().replace(',','').replace('.','').replace('!','').replace(',','?').split()]
for w in sentence:
if w not in d:
d[w]=1
else:
d[w]+=1
input()
words=input().split()
all=sum([x[1] for x in d.items()])
for word in words:
all-=d[word]
print(all)
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 11ms
memory: 10576kb
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