QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#715427 | #9578. 爱上字典 | zxk | RE | 7ms | 10640kb | Python3 | 273b | 2024-11-06 12:01:14 | 2024-11-06 12:01:16 |
Judging History
answer
word_list = input().split()
s = set()
for word in word_list:
if word[-1] in ['.', '?', '!', ',']:
s.add(word[:-1].lower())
else:
s.add(word.lower())
n = int(input())
for i in range(n):
s.discard(input().lower())
print(len(s))
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 7ms
memory: 10640kb
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