Section 8. Discretization (integer order)

1, Meaning of discretization: For array a [] = {1,31002000500000,...}, Map them one by one to subscripts 0,1,2,3,4 This process is called discretization be careful: There may be duplicate elements in a [], which need to be de duplicatedHow to calculate the value of x after discretization: dichotomy 2, Discrete process Usage of vecto ...

Added by altexis on Wed, 12 Jan 2022 11:42:26 +0200

Codeforces Round #734 (Div. 3)

Hello, everyone, what I bring to you today is Codeforces Round #734 (Div. 3) Explain the whole topic. Link to this article: https://www.lanqiao.cn/questions/204012 Thank Lqyk students of blue bridge cloud class for their solutions. A. Polycarp and Coins Title Link https://codeforces.com/contest/1551/problem/A General idea of the topic ...

Added by MnM333 on Wed, 12 Jan 2022 09:50:43 +0200

[C/C + + basic advanced series] actual combat record -- C + + application project structure construction (GYP)

[C/C + + basic advanced series] actual combat record -- C + + application project structure construction (GYP) [1] Keyword overview in GYP conditions: condition definitionIncludes: includes List of gypi filestarget_defaults: the default project configuration. The configuration of each project (targets) needs to be inherited from this configur ...

Added by westonlea7 on Wed, 12 Jan 2022 08:20:49 +0200

Simple sorting algorithm

I don't know how long I haven't written a blog,,, of course I will continue to write after the final exam (although the final exam is very rubbish). I donated 300r to the Blue Bridge Cup some time ago. I don't learn some algorithms in winter vacation. I feel sorry for the money. I'll write a blog to record the learning process and review it. ...

Added by wscreate on Wed, 12 Jan 2022 06:01:44 +0200

Understand decltype keyword

1. decltype keyword decltype is called a type specifier. Its function is to select and return the data type of the operand. for example The return value of the Test2 function is std::initializer_list type std::initializer_list<int> Test2() { return { 1,2,3 }; } We use the consistent initial list decltype(Test2()) Arr1 = { 1,2,3 ...

Added by AV1611 on Wed, 12 Jan 2022 03:51:06 +0200

C + + Summary - grammar

Static keyword 1. Static global variable Static modifies a global variable to make it a static global variable. This variable is stored in the static storage area and can only be used in this file. Therefore, other files can also define variables with the same name without conflict. 2. Static local variable It refers to static modifying ...

Added by pedrobcabral on Tue, 11 Jan 2022 15:27:47 +0200

Sorting out the core knowledge points of cmake

Written in the front: mainly refer to the classic pdf tutorial cmake practice. Here, I mainly summarize and add some details encountered in the process of practice The function of cmakelists is to automatically generate makefile s. If there are cmakelists, the compilation process is as follows: This is typical_ Source method, that is, external ...

Added by blen on Tue, 11 Jan 2022 12:18:29 +0200

Improving C + + Programming Chapter 1 template

I. concept of templates Template is to establish a general mold, which greatly improves the reusability Another programming idea of C + + is called generic programming, which mainly uses template C + + improves two template mechanisms: function template and class template Two, template characteristics The template cannot be used directly. It i ...

Added by kickstart on Tue, 11 Jan 2022 08:22:42 +0200

Class constructor and destructor

C + + empty class What are the default constructors for C + + empty classes? class Empty {  public:  Empty(); // Default constructor Empty( const Empty&); // Copy constructor ~Empty(); // Destructor Empty& operator=( const Empty&); ...

Added by Sulman on Tue, 11 Jan 2022 04:57:47 +0200

Search exercises

search 1, Eight queens Checker Challenge One of the following 6 \times 66 × In the checkers board of 6, six pieces are placed on the board so that there is and only one piece in each row and column, and there is at most one piece on each diagonal (including all parallel lines of the two main diagonals). The above layout can be described ...

Added by ghazianibros on Tue, 11 Jan 2022 04:32:33 +0200