Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=4391Test instructionsGive an interval, there are two kinds of operation1: The interval of x to Y is dyed as Z2: Query the number of color z in the range x to YIdeas:The z maximum 2^31-1 of the problem, the interval length of the maximum 1e5, with the line-tree color discretization after the maintenance will not surviveso with a chunked hash, a length of n is divided into sqrt (n) block maintenance, each block with a map to record the number o
This forum uses a total of less than 200 lines of code, execution speed is very fast. Running example in: Http://www.hnpts.ha.cn/forum
MySQL Database: yxforum
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| ID |Int (11) | | PRI | 0 | auto_increment |
| DT | datetime |YES | |NULL | |
| TP | varchar (255) |YES | |NULL | |
| CT | Text |YES | |NULL | |
| FL | Int (11) |
');
--------------------------------------------------------------------------------
Field description
ID, ID number of the record
ParentID, the record's parent record ID (0 is the root record)
Topic, the display title of the record
Show programs
Order Tree:
PHP Code:--------------------------------------------------------------------------------
?
/* Database Connection * *
Mysql_connect ();
mysql_select_db (' tree ');
/* Tree Display recursive function * *
function tree ($parentid = 0)
, in the migration process, the conversion of a raid before the disk, the conversion before the raid of all the disks are offline
3, supported type RAID 0 to raid 1,raid 0 to raid 5,raid 0 to raid 6,raid 1 to raid 0,raid 1 to raid 5,raid 1 to raid 6,raid 5 to RA ID 0,raid 5 to raid 6,raid 6 to raid 0,raid 6 to RAID 5
Ix. Upgrading
1, from the low version to the high version of the upgrade megacli-adpfwflash-f x.rom-a0
2, from the high version to t
Pointer to a constant
Const int * P;
Variable
Immutable
Constant pointer to a constant
Const int * const P;
Immutable
Immutable
Ii. References
1. The reference is an alias, such as Int rnum = num;
Example 1:
int main(){int a;int ra = a;ra = 999;cout
Output:
A: 999 // Ra change will cause a to make the same changeRA: 0
int argc, char * argv[]-argument count argument vectorARGC-The number of command-line arguments, argv[] points to each command-line argument, where Argv[0] is the program name: The following program contains the complete program path.#include intMainintargcChar*argv[]) { inti =0;//begin with 0 while(I argc) Std::cout//Output String" " //Output SPACE//Terminate output line return 0;}
Reference1) as the return value, do not need to produce a temporary object, and then
C + + references-temporary variables, reference parameters, and const referencesIf the actual participation reference parameter does not match, C + + generates a temporary variable. If the reference parameter is const, the compiler generates a temporary variable in the following two scenarios:The argument type is correct, but not an lvalueThe argument type is incorrect, but can be converted to the correct typeLvalue parameters are data objects that can be referenced, for example, variables, arra
provides public-key cryptography and digital signature services to manage keys and certificates. An organization can establish a secure network environment by using the PKI framework to manage keys and certificates. PKI mainly consists of four parts: Certificates in the form of X-V3 and certificate revocation List CRL (V2), CA operation Protocol, CA Management Protocol, CA policy development. A typical, co
Key words: Ssl,pki,macAbstract: SSL leverages data encryption, authentication, and message integrity validation mechanisms to provide security assurances for application-layer protocols based on reliable connections such as TCP. This paper introduces the background, security mechanism, working process and typical networking application of SSL.Abbreviations:
Abbreviations
English full Name
Chinese explanation
Objective
The CA is the issuing authority for the certificate, which is the core of the PKI. CA is the authority responsible for issuing certificates, certifying certificates, and administering issued certificates.It is to develop policies and specific steps to verify, identify, and sign user certificates to ensure that the identity of the certificate holder andOwnership of the public key.The CA also has a certificate (public key included) and a
the server's/etc/pki/tls/certs/, and copy the. Key and. CSR files to/etc/pki/tls/private/. (for CentOS server only, other servers please Baidu).You will also need to link the CERT.PEM (if not one) under/etc/pki/tls/to/ETC/PKI/TLS/CERTS/ROOT.CRTThis will not be reported sec_error_unknown_issuer this error when it is ac
mirror system uses the connecting IP address of the client and the# update status of each mirror To pick mirrors that is updated to and# geographically close to the client. You should use this for CentOS updates# unless is manually picking other mirrors.## If the mirrorlist= does For your, as a fall back you can try the # remarked out Baseurl= line instead.##[base]name=centos-$releasever-basemirrorl ist=http://mirrorlist.centos.org/?release= $releasever arch= $basearch repo=os#baseurl=http://
message is as follows
Using Configuration From/etc/pki/tls/openssl.cnf/etc/pki/ca/index.txt:no such file or directoryUnable to open '/etc/pki/ca/index.txt '140292081481544:error:02001002:system library:fopen:No such file or Directory:bss_file.c:398:fopen ('/etc/pki/ca/ Index.txt ', ' R ')140292081481544:error:2007400
To establish a private CA:Generate a self-visa book on the server that is configured as a CA, and provide the required directories and files for the CA;Steps:(1) Generate the private key;]# (umask 077; OpenSSL genrsa-out/etc/pki/ca/private/cakey.pem 4096)Note: The filename should match the file name in the configuration file;]# ll/etc/pki/ca/private/: Check the file permissions to ensure that it is 600;(2)
The default centos comes with a lot of good software, so you need to add a third source1. Install the centos Yum source priority plug-in Yum-PrioritiesYum install yum-plugin-priorities.noarch2. Set the highest priority of the centos default Yum SourceCD/etc/yum. Repos. d/# enter the yum source directoryVI CentOS-Base.repo # Add priority = 1 under the [base], [updates], [extras] group, add priority = 2 under the [centosplus], [contrib] Group######################################## ###############
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.