QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#715473#9578. 爱上字典zxkRE 164ms68592kbPython3337b2024-11-06 12:14:102024-11-06 12:14:11

Judging History

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

  • [2024-11-06 12:14:11]
  • 评测
  • 测评结果:RE
  • 用时:164ms
  • 内存:68592kb
  • [2024-11-06 12:14:10]
  • 提交

answer

import sys
word_list = sys.stdin.readline().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())
dict_list = input().split()
for word in dict_list:
	if word in s:
		s.remove(word.lower())

print(len(s))

详细

Test #1:

score: 100
Accepted
time: 14ms
memory: 10636kb

input:

I love Liaoning. Love Dalian!
1
love

output:

3

result:

ok single line: '3'

Test #2:

score: 0
Accepted
time: 15ms
memory: 10736kb

input:

Sulfox Loves Furry! Fur fur Furred.
2
anthropomorphic furry

output:

4

result:

ok single line: '4'

Test #3:

score: 0
Accepted
time: 14ms
memory: 10548kb

input:

Ginkgo leaves dance lightly and fall, reflecting the autumn light on the golden ground. Time is as peaceful as when we first met.
5
ginkgo reflect is as we

output:

17

result:

ok single line: '17'

Test #4:

score: 0
Accepted
time: 148ms
memory: 68464kb

input:

Eunuchism overterrible furbelow gantlet. Sophism thyroiditis thermoelectricity hassel misreward Barolong biradiated? Sweetie fatal delinquence unseemlily beamish inwork, azyme kamias Hans asteatosis synderesis champleve cheth? Dinitrile podial presentee! Waxmaker scleroscope ratably hectography lamp...

output:

201961

result:

ok single line: '201961'

Test #5:

score: 0
Accepted
time: 164ms
memory: 68592kb

input:

Unsubsidiary unsacrificeable hacking colberter pseudoappendicitis rufescence tumbak? Hypocrize aithochroi. Spina machar proximation? Chaperone vermicide virescent Klan preplacental unabsolvedness Sarcosporida noveletter waspishness sponge trustle bistetrazole prepositure melamed, cinephone. Physopho...

output:

201951

result:

ok single line: '201951'

Test #6:

score: 0
Accepted
time: 153ms
memory: 68504kb

input:

Baikerite discontentful semicitizen Acoemetic veracity pretechnical bloodweed cytogenetic icebound disrelishable leader meltedness heroship sciniph gunsel fatalistically unreasoned anticatarrhal? Unmentioned! Overaddiction broomy misapplication hecte inflammable disheart dicaryon blacktail prisonabl...

output:

201759

result:

ok single line: '201759'

Test #7:

score: -100
Dangerous Syscalls

input:

Dizoic filtering damenization bistipuled Opisthothelae multiangular blaff mortally. Perfusive alkaptonuria possessorial coinstantaneousness Stanhopea Nascan. Ankylostoma aumil oxygenicity cubhood abandonee fishman poppy pickpole synkinesis arteriosclerosis coloproctitis prematrimonial pseudoviaduct ...

output:


result: