COdeforces # mongod Cunning Gena (pressure DP)
A boy named Gena really wants to get to the "Russian Code Cup" finals, or at least get a t-shirt. but the offered problems are too complex, so he made an arrangement with hisNFriends that they will solve the problems for him.
The maid are offeredMProblems on the contest. For each friend, Gena knows what problems he can solve. But Gena's friends won't agree to help Gena for nothing:I-Th friend asks GenaXIR
Question:
K, X, n, m
Find the string S1, S2, S1 length N, S2 length m
Give rule, Sn = sn-1 + sn-2
Causes X "AC" substrings in SK
It is easy to know that there are several 12, several 21, several 22 sub-strings after K operations, several 1 strings, and several 2 strings.
If we know that there are several AC in S1 and several AC in S2
S1 head and tail, S2 head and tail
We can calculate the number
Now, in turn, we do not know S1, S2. We need to find such S1, S2
So we enumerate
S1 head and tail, S
I would like to give you a detailed explanation and share with you the interface of the Canon idea D camera.Analysis and sharing:Canon Medical D is equipped with USB 2.0 interface, 5mm stereo Mini jack, avoutput interface, and Mini HDMI output
I will give you a detailed explanation of the issue that the Canon Medical D camera does not support p video shooting.Analysis and sharing:Canon Medical D supports full-definition 1920x1080 pixels, HD 1280x720 pixel video shooting, and SD 640x480
Let's give you a detailed explanation of the bayonet of the Canon Medical D camera.Analysis and sharing:Canon shield D is a Canon EF bayonet. All right, the above information is the complete explanation and sharing of the bayonet of the Canon
1.--storageengineStarting from 3.0, a new storage engine WT was added. The old version of the storage engine is called MMAPV12.--oplogsizeOplog is the primary component of replication and is located in the local database. When initializing the
Let's take a closer look at the shutter speed of the Canon Medical D camera.Analysis and sharing:The shutter speed of Canon Doctor D is 1/60-1/4000 seconds (intelligent automatic mode of scenario), the flash synchronization speed is 1/200 seconds,
I would like to give a detailed analysis to all photography enthusiasts and share with them the problem that the Canon Medical D camera does not support anti-shake.Analysis and sharing:Canon platinum D supports optical image stabilization. All
I would like to give you a detailed explanation and share with you the interface of the Canon idea D camera.Analysis and sharing:Canon Medical D is equipped with USB 2.0 interface, 5mm stereo Mini jack, avoutput interface, and Mini HDMI output
I will give you a detailed analysis of the exposure mode of the Canon Medical D camera.Analysis and sharing:The exposure mode of Canon healthcare D includes automatic application exposure (intelligent and automatic scenes, flashlight disabling,
for the report by the Force's quota D is locked. Mongod generates output every four seconds. The Log Path option used by MongoDB to write the data to the standard output or log file.
-- Dbpath
Specify a directory's mongod instance to store its data: typical regions include:/srv/MongoDB,/var/lib/MongoDB or/opt/MongoDB
Unless otherwise specified,
MongoDB replica set: installation and deployment
PreparationsSoftware Environment
OS: Oracle Linux 6.5
MongoDB: mongodb3.2.3
Deployment Architecture
Three servers are simulated.
10.1.5.123: 28001 master node
From node 10.1.5.123: 28002
10.1.5.123: 28003 election Node
Replica set architecture: one master, one slave, one election Node
Download and install
: Https://www.mongodb.org/downloads
Mongodb-linux-x86_64-rhel62-3.2.3.tgz
Deployment steps1. Create a directory and a user[Root @ devtest mo
start mongod:
Mongod-f/etc/mongod. conf -- fork -- nojournal
V. Tool Methods
5.1: Basic mongodump operationsYou can use the following options to back up data using mongodump:-Help: View help information.-V [-- verbose] shows more debugging information.-Version: displays the command version.-H [-- host] IP address of the host where the arg mongodb database is lo
://blog.csdn.net/liu334265659/article/details/41070323. After the installation is successful, do not use the startup command on the blog.2. Create a data directoryThe above operations on the 192.168.3.206 server are as follows:Mkdir-p/data/mongodb/shard11Mkdir-p/data/mongodb/shard21Mkdir-p/data/mongodb/configThe above operations on the 192.168.3.210 server are as follows:Mkdir-p/data/mongodb/shard12Mkdir-p/data/mongodb/shard22Mkdir-p/data/mongodb/configThe above operations on the 192.168.3.201 s
The following figure shows the mongdb cluster architecture to be built. Create the first replset folder ------------------ create directory mkdir-P/data/replset_sharding/replset1/r0mkdir-P/data/replset_sharding/replset1/r1mkdir-P /data/replset_sharding/replset1/r2mkdir-P/data/replset_sharding/replset1/log can be changed to the following one (this is for the convenience of viewing logs, view it directly in the command line output)/apps/Mongo/Bi N/mongod
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.