最新 最热

189A Cut Ribbon(dp)

Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions:

2020-10-23
1

HDU5269 (字典树)

Memphis loves xor very musch.Now he gets an array A.The length of A is n.Now he wants to know the sum of all (lowbit(Ai xor Aj)) (i,j∈[1,n]) We define that low...

2020-10-23
1

POJ2251(三维bfs)

You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes ...

2020-10-23
1

HDOJ-1711(kmp算法)

Given two sequences of numbers : a[1], a[2], … , a[N], and b[1], b[2], … , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make...

2020-10-23
1

B. Taxi (贪心)

原题链接158B题目描述After the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrate his birthday. We know that the i-th group ...

2020-10-23
1

POJ1611 (并查集)

Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmiss...

2020-10-23
1

Codeforces Round #613 (Div. 2) C. Fadi and LCM

Today, Osama gave Fadi an integer X, and Fadi was wondering about the minimum possible value of max(a,b) such that LCM(a,b) equals X. Both a and b should be pos...

2020-10-23
2

图论-单源最短路径(Dijskal算法)

Dijkstra算法应用了贪心的思想,即“抄近路走”。维护两个集合A和B,A表示已确定最短路径的结点集(红色表示), B表示邻居结点(蓝色表示)。...

2020-10-23
1

浅谈pytorch中torch.max和F.softmax函数的维度解释

在利用torch.max函数和F.Ssoftmax函数时,对应该设置什么维度,总是有点懵,遂总结一下:

2020-10-21
1

关于tensorflow softmax函数用法解析

softmax函数的返回结果和输入的tensor有相同的shape,既然没有改变tensor的形状,那么softmax究竟对tensor做了什么?

2020-10-21
1