当前位置:网站首页>Nlp-d46-nlp match D15

Nlp-d46-nlp match D15

2022-06-11 05:50:00 Zhen xiaopang

—0557 yesterday 2 Order some sleep ( Finish it 12 A little bit , I feel like staying up late hhh) morning 5 Wake up a little bit more , Woke up .

Just changed the program , Now run ;
I went to read the paper !!!

2- Is not important - read
0- important 、 Intensive reading required
1- important 、 Have read
3- commonly , Not finished
4- commonly , read

-0 For the knowledge map itself ,-1 For network security

-----0748 After training , The time view of reading papers is much better , But the summary needs to be processed , Or it's too slow !!!
have breakfast !

NER Mission

https://blog.csdn.net/qq_33837704/article/details/114142390

—0955
Start to brush the questions ~

Matrix difference

n,m,q = map(int,input().split())

a = [[0]*(m+2) for _ in range(n+2)]
b = [[0]*(m+2) for _ in range(n+2)]

for i in range(1,1+n):
    a[i][1:] = list(map(int,input().split()))

def add(x1,y1,x2,y2,c):
    b[x1][y1]+=c
    b[x2+1][y1]-=c
    b[x1][y2+1]-=c
    b[x2+1][y2+1]+=c
    
for i in range(1,1+n):
    for j in range(1,1+m):
        add(i,j,i,j,a[i][j])

for _ in range(q):
    x1,y1,x2,y2,c = map(int,input().split())
    add(x1,y1,x2,y2,c)

for i in range(1,1+n):
    for j in range(1,1+m):
        b[i][j] += b[i][j-1]+b[i-1][j]-b[i-1][j-1]
        print(b[i][j],end = ' ')
    print()
    

799

Don't forget to change j Value

n = int(input())
a = list(map(int,input().split()))

j = 0
S = [0]*100010
res = 0
for i in range(n):
    S[a[i]]+=1
    while j<i and S[a[i]]>1:
        S[a[j]]-=1
        j+=1
    res = max(res, i-j+1)

print(res)

2816

n,m = map(int,input().split())

a = list(map(int,input().split()))
b  = list(map(int,input().split()))

i,j = 0,0

while i<n and j<m:
    if a[i]==b[j]:
        i+=1
        j+=1
    else:
        j+=1
if i>n-1:
    print('Yes')
else:
    print('No')

lowbit(x)=x&(-x), Return to the last bit 1 The location of

n = int(input())
a = list(map(int,input().split()))
def lowbit(x):
    return x&(-x)
def nums_one(x):
    i = 0 
    while lowbit(x):
        i+=1
        x-=lowbit(x)
    return i
for x in a:
    print(nums_one(x), end=' ')

----1033 Go make nucleic acid !!

docker effect

As opposed to virtual machines , Containers isolate the execution environments of applications from each other , But sharing the underlying OS kernel . They are usually in megabytes , Much less resources are used than virtual machines , And it starts almost immediately . You can package more intensively on the same hardware , Without spending too much energy and expense .
https://cloud.tencent.com/developer/news/623446

------2359 Wuhu should go to bed

原网站

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