Jizhong life

This is the first blog, a few days ago not to write.

Universal set of simulations:

Test0  equation .

Violence search every number, and the answer is 2 the biggest, but there are a number of data anti-play table.

Test1 capacitor.

 

capacity
after a x x + 1 becomes a parallel capacitor becomes larger, the series becomes x / (x + 1) becomes small, we need to make the final capacitance becomes 1, then we push the opposite of, if the current capacitance greater than 1, the last operation is in parallel, before the parallel is x-1 (i.e. (ab) / b), if the current capacitance is less than 1, the operation is the former series, the series last is x / (1 - x) (i.e., a / (ba)), it is not difficult to find both a and b are subtracted removed, then we can accelerate as long as the division was removed, and the business is the answer.

 

Test2  fall .

See the x coordinate to a lesser extent, considering a rectangular split into a plurality of segments in units of rows, up to 1000 * 1000, and then double-keyword ranking statistics for each line segment covered. From a solution to a problem

Test3  map .

F [i] [j] denotes the i-th degree is also a point to be added, there is a degree of j-th point 2 to increase the number of programs.
f [i-2] [j ] + = f [i] [j] * (i-1) ( j = a required start point is the number of 2)
F [I-2] [-J. 1] + = F [I] [J] * I * (I-. 1) / 2
F [I + 2] [J-. 3] + = F [I] [J] * (J-. 1) * (J-2 ) / 2
F [I] [J-2] = F + [I] [J] * I * (. 1-J)

 

Finally, I burst zero today could have been water 50 minutes.

Guess you like

Origin www.cnblogs.com/ouzijun-OJ/p/11368901.html