QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#763456 | #9578. 爱上字典 | renew | RE | 15ms | 10720kb | Python3 | 573b | 2024-11-19 20:21:38 | 2024-11-19 20:21:39 |
Judging History
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