[SCOI2008] coloring scheme” (to be continued)
Subject matter:A row;Row 1\(n\)A piece of wood,\(k\)Kinds of paint, each paint.\(c_i\)The barrel requires that the color of two adjacent blocks cannot be the same.\(\pmod{1e9+7}\)
Solution.1
state:set up\(f[i][j]\)For the former\(i\)The block is painted, and the last piece is\(j\)colour
transfer:$f[i][j] = \sum_{h=1,h \ne j } ^ {k}f[i-1][h] $
OK, I can’t record how much each barrel is used, hang up.
Eh, this is this\(c[i]\)It’s a little small, and if two kinds of paint remain the same number of barrels, explain.
state...
classloader
Class loader (ClassLoader) is used to load class bytecode to Java virtual machine. In general, Java virtual machines use Java classes in the following way: Java source files are converted to Java after passing through JavacBytecode file (.Class file). The class loader is responsible for reading the Java byte code and converting it into an instance of the java.lang.Class class. Each of these instances is used to represent a Java class. The actual situation may be more complicated, for example.Java byte code may be generated dynamically by tools or downloaded through the network.
...
Whether by counting algorithm to determine the number of object references, or by the root search algorithm to determine whether the object reference chain is reachable, to determine whether the object is alive or not is related to the “reference”.
References are mainly divided into four types: Strong Reference, Soft Reference, Weak Reference and Phantom Reference, and the strength of the reference.Sharp decrease in turn.
Strong reference:
This refers to a common occurrence in code, similar to “Object objectRef = new Obejct,” which will never be cleaned up by GC ...
1. Summary
> keep default in server selection page.“Select server from the server pool, click next.
2.4 > because of the test environment, noWindows 2012The following servers, so keep the default forest and domain level for 2012 R2, which can be selected according to the environment in actual production; enter the directory restore password, which is the password used when restoring the domain control state
2.12
Actually, I’ve always liked swift. I think Xcode is very advanced. I can operate it by buying a MacBook. That’s good.
var str = "Hello, playground"
var myVariable = 42
myVariable = 50
let myConstant = 42
let implicitInteger = 70
let implicitDouble = 70.0
let explicitDouble: Double = 70
let label = "The width is "
let width = 94
let widthLabel = label + String(width)
let apples = 3
let oranges = 5
let appleSummary = "I have \(apples) apples."
let fruitSummary = "I have \(apples + oranges) pieces of fruit."
swiftCode
Basic command learning directory
shellIn the script, echo shows the content with color display, echo display with color, and needs parameter -e.
The format is as follows:
echo -e "\033[Word background color; text color M string \033[0m "
For example:
echo -e "\033[41;36m something here \033[0m"
41 of the positions represent the background color, and 36 of the positions represent the colors of the characters.
Note:
1、The word background color and text color are in English.
2、There is a m behind the text color.
3、There is no space before and after the string, and if so, the output is ...
First, define the status Position P first hand must lose N x first win.
Operation method: reverse transfer
A pair with the same status and different location is equivalent to none.
For ICG games, we can represent every possible situation in the game as a point. And if there is a situation I and a situation J, and j is the successor of the situation I (that is, situation I can be transformed into a situation j), we use a directed edge, starting from I to J, to connect the points representing the situation I and the situation J.Then the whole game can be represented as a directed acyclic grap...
Method manual settingHTML:<!--<div class="box">
<div class="winBox">
<ul class="scroll">
<li><a href="#">Fashion casual pants 68 yuan < /a> < /li>< li> < a href="#">Woolen sweater 38 yuan < /a> < /li>< li> < a href="#">The new snow boots are 88 yuan < /a> < /li>< li> < a href="#">Thickening flannel 108 yuan < /a> < /li>< li> < a href="#">Panty hose 19 yuan, 2 pairs of < /a> < /li>< li> < a href="#">Fashion...