L1-006 Continuous Factor

... L1-006 Continuous Factor (20 points) A positive integer There may be several consecutive numbers in the factor of N. For example, 630 can be decomposed into 3 × 5 × 6 × 7, where 5, 6, and 7 are 3 consecutive numbers. Given any positive integer N, the program is asked to find the number...


C language operator priority level 诀

... Basic priority needs to remember: pointer is optimal, monocular operation is better than binocular operation. Such as the sign. 先乘除 (模), after adding and subtracting. First arithmetic operation, post shift operation, last bit operation. Please pay special attention to: 1 << 3 + 2 ...


Deeply convinced C / C + + technology side two sides 20180924

... technology side: mainly about the data structure and C / C + + related content 1) the same points and different points of the linked list and array; 2) Static linked list? How to implement static linked list with array? 3) What are the issues that should be noted when using the library...


Vasya and Triangle Ideas +gcd

... 题意: 略 思想: 使三角区为S, Because the three points of the triangle required by the title are the whole point , so 2*S is a positive number, prove that we find the circumscribing rectangle of this triangle in the first quadrant, so that its area is S1, so that the area outside the triangle in...


C language entry 1

... C language entry 1 1. Output 99 multiplication table #include<stdio.h > int main( ){ int i = 1,d = 1,cf=0; for (i = 1; i<10; i++){ for (d = 1; d <= i; d++){ cf = i*d; printf("%d*%d=%d\t", i,d,cf); } printf("\n"); } system ("pause"); } 2. Judging prime number #include<...


Compiling Cocoapods static library with Xcode

... It is very convenient to use Cocoapods to host open SDK frameworks for third parties in development. However, in practice, it is found that the lint test of cocoapods is too strict, often because of the creation of the framework. An unrecognizable problem caused xcodebuild to fail to...


The shared_ptr of C++11 may cause the function call stack to overflow.

... The first concern is that the implementation of the version of the stack data structure mentioned in the C++ Concurrency in Action book, the implementation of the lock free version. When you need to introduce the count reference memory recovery mechanism, the author thinks that shared...


Noi.ac and Niuke.com NOIP simulation part of the topic record

... 牛客网NOIP pre-match training camp-enhancement group (second game): T2: cent candy This question will not work at all. Considering the sequence, the repulsion is to consider how many pairs of equal relations, that is, how many equal signs, then set f [ i ] f[i] f [ i ] to take into account...


Compile Jsoncpp deployment into the project

... compile Jsoncpp to deploy to the project First, generate Jsoncpp library file 1, Jsoncpp source code download link: https://github.com/open-source-parsers/jsoncpp; 2, jsoncpp-master->makefiles->msvc2010->jsoncpp.sln; 3, compile and generate the library file libjson.lib ...


LeetCode 51.N-Queens (N Queen's Question)

... 题描述: n Queen's problem research is how to place n queens at n × n on the board, and the queens can't attack each other. 上图 is a solution to the 8 queen problem. Given an integer n , return all the different n solutions for the queen problem. Each solution contains a clear n the queen's...