Reverse algorithm complexity and algorithm content from data range
Author: yxc
link: https: //www.acwing.com/blog/content/32/
Source: AcWing copyright reserved by the authors.
Generally, the time limit for ACM or written test questions is 1 second or 2 seconds.
In this case, it is best to control the number of operations in the C++ code at 10^7.
The following shows how to choose the time complexity of the code and the algorithm under different data ranges: