当前位置:网站首页>NLP-D62-nlp比赛D31&刷题D15
NLP-D62-nlp比赛D31&刷题D15
2022-06-27 05:19:00 【甄小胖】
vuneralbility和weakness的区别
好像没有区别,需要去区分的是threat;vulnerability;riskhttps://www.threatanalysis.com/2010/05/03/threat-vulnerability-risk-commonly-mixed-up-terms/
又好久没刷题了,但是不能停!!!
又卡了好久的bug,郁闷。
826 单链表
**m = int(input())
idx=1
h = -1
N = 100010
e = [0]*N
ne =[0]*N
def insert_h(x):
global idx,h
e[idx] =x
ne[idx] = h
h = idx
idx+=1
def remove(k):
global h
if k==0:
h=ne[h]
else:
ne[k]=ne[ne[k]]
def insert(k,x):
global idx
e[idx] = x
ne[idx]=ne[k]
# ne中是k,不要错写成x
ne[k]=idx
idx+=1
for _ in range(m):
op, *pt = input().split()
if op=='H':
insert_h(int(pt[0]))
elif op=='I':
k,x = map(int,pt)
insert(k,x)
else:
remove(int(pt[0]))
while h!=-1:
print(e[h],end=' ')
h = ne[h]
**
边栏推荐
猜你喜欢
随机推荐
Ad22 Gerber files Click to open the Gerber step interface. Official solutions to problems
微服务系统设计——API 网关服务设计
Interview: what are the positioning methods in selenium? Which one do you use most?
py2neo基本语法
010 C language foundation: C function
Flink production problems (1.10)
Codeforces Round #802 (Div. 2)
微信小程序WebSocket使用案例
Basic concepts of neo4j graph database
双位置继电器RXMD2-1MRK001984 DC220V
RTP 发送PS流工具(已经开源)
leetcode299周赛记录
Epics record reference 5 -- array analog input recordarray analog input (AAI)
AD22 gerber files 点开 gerber steup 界面 有问题 官方解决方法
Vue学习笔记(五)Vue2页面跳转问题 | vue-router路由概念、分类与使用 | 编程式路由导航 | 路由组件的缓存 | 5种路由导航守卫 | 嵌套路由 | Vue2项目的打包与部署
[C language] keyword supplement
Remapping (STM32)
微服务系统设计——分布式事务服务设计
论文解读(LG2AR)《Learning Graph Augmentations to Learn Graph Representations》
Machunmei, the first edition of principles and applications of database... Compiled final review notes