Logu P1043 Numeric Game
Title Description
Ding Ding has recently become addicted to a digital game.The game seems simple, but after many days of research, Tintin finds that it is not easy to win under simple rules.The game is like this, there is a circle of integers (n in total) in front of you, you want to divide them into m parts in order, the numbers in each part ...
Posted by msinternet on Sun, 12 Jul 2020 08:27:15 -0700
Algorithm training phase I
Overview of the first phase of algorithm
As the first phase of algorithm training, it is not difficult. But as a normal algorithm learner. We should not be bound by the present, so we will talk about as many ways as possible. As a review of previous algorithm learning. The methods used here will be described in detail in other documents.
Missin ...
Posted by PeterPopper on Sat, 20 Jun 2020 21:24:09 -0700
[data structure] - traversal algorithm of binary tree
Title Requirements
Write a program to build the binary list storage structure of the binary tree by using the first order recursive calendar (or input the first order and the middle order recursive traversal node access sequence), calculate and output the total number of nodes and the height of the binary tree, and then output the first order, ...
Posted by Ravi Kumar on Sun, 07 Jun 2020 21:16:07 -0700
[Data Structure] - Evaluation of Infix Expression
Title Requirements
Enter the infix expression from the keyboard, set up the stack of operands and operators, and calculate and output the evaluation results of the expression.Basic requirements: implement +, -, *, /four binary operators and (); operands range from 0 to 9.Increased requirements: implement +, - two unary operators (i.e., positive ...
Posted by amir on Fri, 05 Jun 2020 19:18:06 -0700
bzoj3569 DZY Loves Chinese II
Title Link
problem
Give an undirected graph with \ (n \) points \ (m \) edges, and then ask \ (Q \) times. Each time you ask, \ (k \) edges will be given. You need to answer whether the undirected graph is connected or not after deleting the \ (k \) edges.
\(n\le 10^5,m\le 5\times 10^5,k\le 15\)
solution
First, find out a \ (dfs \) tree, and co ...
Posted by melbell on Mon, 25 May 2020 07:05:33 -0700
What are references and how to use them? Use reference as function parameter, relevant examples
What is reference?
int a;
int &b=a;
Above is the reference to the variable
Sign & it's not the meaning of going to address, it's the meaning of going to address when it's a pointer, here it's a reference. (this quotation is not a verb, but a noun.)
Definition of reference: a "reference" can be created for a data. Its function ...
Posted by 00tank on Sun, 24 May 2020 08:14:12 -0700
Learning C language [8] looking for single dog
Only two numbers in an array appear once, and all other numbers appear twice. Write a function to find the two numbers that only appear once. LeetCode: Once only numbers, title links
Example
Input: [1,2,3,4,5,2,1,3]
Output: 4, 5
Method 1: sort the array first, and then compare the adjacent numbers to see if they are the same. Figure:
#inclu ...
Posted by r4r4 on Sat, 09 May 2020 08:15:00 -0700
Non rigid face recognition practical
Object oriented design
Like face detection and face recognition, face tracking consists of two parts: data and algorithm. The algorithm trains the model by storing (i.e. offline) data in advance, and then performs some operations on the new (i.e. online) data. Therefore, object-oriented design is a good choice.
In opencv 2.x version, it is conv ...
Posted by intodesi on Mon, 04 May 2020 06:40:03 -0700
The 7th Blue Bridge Cup winter work
Please indicate the source of Reprint: http://www.cnblogs.com/zhishoumuguinian/p/8365430.htmlWinter work
Now the math problems in primary school are not so interesting. Look at this winter vacation assignment. Each box represents a number from 1 to 13, but it can't be repeated.
□ + □ = □ □ - □ = □ □ × □ = □ □ ÷ □ = □
For example: and: 6 ...
Posted by Rianna on Sun, 03 May 2020 06:24:45 -0700
UE4 draw a ray with code
We all know that the ray in UE is very important. We will use blueprint to add components
But I will not use C + + to add. Today, I will teach you how to use C + + code to realize it
IDE:VS2017
UE version: 4.17
First rendering:
We create a C + + project to give empty
After startup, press F8 to select the default pawn and add a blueprint script
...
Posted by matvespa on Sat, 02 May 2020 02:31:12 -0700