QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#773792 | #9578. 爱上字典 | ruoye123456 | RE | 7ms | 10692kb | Python3 | 289b | 2024-11-23 10:21:03 | 2024-11-23 10:21:10 |
Judging History
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: 7ms
memory: 10692kb
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