QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#763456#9578. 爱上字典renewRE 15ms10720kbPython3573b2024-11-19 20:21:382024-11-19 20:21:39

Judging History

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

  • [2024-11-19 20:21:39]
  • 评测
  • 测评结果:RE
  • 用时:15ms
  • 内存:10720kb
  • [2024-11-19 20:21:38]
  • 提交

answer


#the person  play the game is must be under cf 1600,haha ,tmd,tsl,the person above 2000 code it  feel like they are  truely  shit problems,the school make the contest is too shun

se = set() 
li = []
s = ""

line = input().strip()  
for c in line:
    if c.isalpha():
        s += c.lower()
    elif c == ' ':
        li.append(s)
        s = ""
li.append(s)  # Append the last word
n=int(input())
for _ in range(n):
    s = input().strip()
    se.add(s)

nmsl = 0
for x in li:
    if x not in se:
        nmsl += 1
        se.add(x)

print(nmsl)

詳細信息

Test #1:

score: 100
Accepted
time: 15ms
memory: 10720kb

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

output:


result: