[POJ1050+POJ2018+HDOJ6638] maximum sub sections and problems
(1) POJ1050 - classical maximum segments and problems
POJ1050Title: find the maximum sum of submatrixes of a given matrix, n ≤ 100n ≤ 100n ≤ 100Solution idea: because n is very small, it can be done by O (N3) O (N3) O (N3). Enumerate the upper and lower bounds of the matrix, and deal with the ...
Posted by Hoangsta on Thu, 23 Jan 2020 06:14:27 -0800
Bootstrap Grid system
Bootstrap Grid System
Bootstrap includes a responsive, mobile device first, and non fixed grid system, which can be appropriately expanded to 12 columns as the device or viewport size increases. It contains predefined classes for simple layout options, as well as powerful hybrid classes for generating ...
Posted by wattsup88 on Thu, 23 Jan 2020 02:10:26 -0800
Java Concurrent Programming--PriorityBlockingQueue of Concurrent Queue Principles
Article Directory
A Probe into the Principle of Priority BlockingQueue
(1). Structure
(2). Principle introduction of PriorityBlockingQueue
1). offer operation
2). poll operation
3). take operation
(3). Summary
A Probe into the Principle of Priority BlockingQueue
_PriorityBlockingQueue is an ...
Posted by biltong on Thu, 23 Jan 2020 00:35:53 -0800
Blue Bridge Cup ALGO-6 comfort cows
Problem description
Farmer John became so lazy that he didn't want to continue to maintain the roads between cows. Roads are used to connect N pastures, which are consecutively numbered 1 to N. Every ranch is home to a cow. FJ plans to remove as many roads as possible from the P roads, but also main ...
Posted by Jade on Wed, 22 Jan 2020 04:36:10 -0800
Process control if
1, What is process control
Sequence of program code execution
2, Classification of process control
(1) Sequential execution
(2) Select execution1. definition:
Some codes may or may not be executed, and some codes may be executed selectively2. classification:
(1) if (more important than switch)
● the ...
Posted by snowman15 on Tue, 21 Jan 2020 04:45:24 -0800
(discretization) Luogu P1496 burning red cliff
Luogu P1496 burning red cliff
First of all, this problem can be simulated. The simulation method needs some skills, but this paper talks about the discretization method, so the simulation method is ignored.
Algorithm analysis 1: first of all, if you ignore the ship position range of this problem (the ...
Posted by seikan on Tue, 21 Jan 2020 04:25:29 -0800
One Python standard library per week
Technology blog: https://github.com/yongxinz/tech-blog
At the same time, welcome to pay attention to my WeChat public number AlwaysBeta, more wonderful content waiting for you to come.
In fact, in Python, multithreading is not recommended. Unless you explicitly do not support the scenario of using multi ...
Posted by Franko126 on Tue, 21 Jan 2020 03:20:23 -0800
Android threads and thread pools -- Reading Notes of Android development art exploration -- Chapter 11
Article directory
1, Thread form in Android
1.1 AsyncTask
1.1.1 usage
1.1.2 principle analysis:
1.2 HandlerThread
1.3 IntentService
2, Thread pool in Android
2.1 ThreadPoolExecutor
2.2 classification of thread pool
2.2.1 FixedThreadPool
2.2.2 CachedThreadPool
2.2.3 ScheduledThreadPool
2.2.4 Sin ...
Posted by RJP1 on Tue, 21 Jan 2020 00:05:38 -0800
6, Garbage collection of JVM
GC log
-Xmx1024m -Xms1024m -XX:+PrintGCDetails
Heap
PSYoungGen total 305664K, used 26214K [0x00000000eab00000, 0x0000000100000000, 0x0000000100000000)
eden space 262144K, 10% used [0x00000000eab00000,0x00000000ec499be8,0x00000000fab00000)
from space 43520K, 0% used [0x00000000fd580000,0x00000000fd580000,0x0000000100000000)
to space 43520K, 0% ...
Posted by beyzad on Mon, 20 Jan 2020 22:25:14 -0800
Product function and linear sieve
Product function and linear sieve
Integrability function
Linear sieve prime number
Ensure that each number will only be screened by its minimum quality factor (different from that each number in the e-sieve will be screened by all its quality factors to make the complexity too high)
int pri[N],tot,zhi[N ...
Posted by nrg_alpha on Mon, 20 Jan 2020 02:27:44 -0800