当前位置:网站首页>Nlp-d62-nlp competition d31 & question brushing D15

Nlp-d62-nlp competition d31 & question brushing D15

2022-06-27 05:27:00 Zhen xiaopang

vuneralbility and weakness The difference between

It doesn't seem to make any difference , What needs to be distinguished is threat;vulnerability;riskhttps://www.threatanalysis.com/2010/05/03/threat-vulnerability-risk-commonly-mixed-up-terms/

 Insert picture description here
I haven't scratched the question for a long time , But it can't stop !!!
Stuck for a long time bug, depressed .

826 Single chain list

**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 Medium is k, Don't write it wrong 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]
        **
原网站

版权声明
本文为[Zhen xiaopang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270519349911.html