Luogu P1896 [SCOI2005] mutual non aggression (shape pressure dp)
Title Description
Title address: P1896 [SCOI2005] mutual non aggression
In N × There are K kings in N's chessboard so that they don't attack each other. How many placement schemes are there. The king can attack one grid in its upper, lower, left, lower, left, lower, right, upper, right and lower eight directions, a total of 8 grids. I ...
Posted by lilRachie on Fri, 18 Feb 2022 08:03:58 +0100
Algorithm experiment -- optimal scheduling of independent tasks
1, Experimental purpose Master the basic idea of dynamic programming and the basic steps to solve the problem, understand the relationship and difference between dynamic programming and divide and conquer, and compare the time complexity of two algorithm design strategies to solve the same problem.
2, Experimental requirements Use c + + langua ...
Posted by shahansudu on Fri, 18 Feb 2022 08:02:31 +0100
Advanced data structure (Ⅳ) Binary Sort Tree (BST)
Advanced data structure (Ⅳ) Binary Sort Tree (BST)
Basic concepts
This data structure is composed of nodes. The links contained in nodes can be empty (null) or point to other nodes. In a binary tree, each node can only have one parent node (with one exception, that is, the root node, which has no parent node), and each node has only two l ...
Posted by revdev on Fri, 18 Feb 2022 07:55:57 +0100
fzoj4493 bad network_ Problem solution
fzoj4493 bad network_ Problem solution
20pts
m
=
n
−
1
m=n-1
m=n − 1, which is the case of a tree. Directly calculate the edge weight sum of the whole tree and a ...
Posted by throx on Fri, 18 Feb 2022 07:44:15 +0100
SDNU_2020Shenyang_Qualification problem solution
C Gym - 102822D
analysis: The answer is monotonous and can be divided into two points. Then the focus is on the writing of the judgment function. Let's assume that the answer is X. because this question needs to reduce the bomb by - 1 before it explodes, it's very awkward. Let's first consider the case that the bomb explodes when it reaches 0. ...
Posted by jhuaraya on Fri, 18 Feb 2022 07:42:23 +0100
[data structure] the order table in Python -- List
College compulsory courses
"Data structure and algorithm" is a required course of computer, no matter in which university. I remember that the course was implemented in C language at that time. The first data structure I came into contact with was the sequential table in the linear table, which was implemented by array. The structure ...
Posted by hothientuan on Fri, 18 Feb 2022 07:38:54 +0100
File upload of DVWA shooting range (three levels)
File upload
Key points of file upload: (1) successfully upload the file by bypassing various filtering methods of the topic and will not be deleted; (2) Ensure the normal operation of documents; (3) Ensure that the file can execute commands.
One sentence Trojan horse (Webshell for short) <?php @eval($_POST['cmd']); ?>
Basic principles ...
Posted by kevin777 on Fri, 18 Feb 2022 07:34:45 +0100
Data structure - Chapter 3 linked list
List
1. Introduction
1.1. Abstract Data Types(ADTS)
ADT definition: a set of objects together with a set of operations Abstract data types are mathematical abstractions; nowhere in an ADT‟s definition is there any mention of how the set of operations is implemented. A set of objects and a set of operations. Abstract data types are mathemat ...
Posted by ryanh_106 on Fri, 18 Feb 2022 07:31:24 +0100
OpenStack Victoria version - 4 Control node - Grace image service component
4. Control node - Grace image service component
More steps: OpenStack Victoria installation and deployment series tutorials
OpenStack deployment series Openstack deployment tutorial series OpenStack Ussuri offline installation and deployment series tutorial (full) OpenStack Train offline installation and deployment series tutorial (fu ...
Posted by markusn00b on Fri, 18 Feb 2022 07:19:33 +0100
System deployment of operation and maintenance automation (semi automation)
Make a semi-automatic deployment system today (install CentOS7 with CentOS8 as the service platform)
Prepare in advance to boot Files with ISO suffix or files with NEtinstall suffix.
If you want to deploy the system automatically, you need to use the response file, which is the document of the operation steps when installing the system. You c ...
Posted by beckjo1 on Fri, 18 Feb 2022 07:09:11 +0100