/* Question: When a mobile string matches another string, the rule that finds the maximum number of matches is to fix one string, then compare the string with another string from left to right */
# Include Question link http://poj.org/problem? Id = 1580
Poj 1580 string matching [string processing]
[Email protected] bin]# yum-y install LrzszLoaded Plugins:fastestmirrorExisting lock/var/run/yum.pid:another copy is running as PID 1580.Another app is currently holding the Yum lock; Waiting for it to exit ...The other application Is:yummemory:37 M RSS (331 MB VSZ)started:wed 23:05:35 2018-12:26 agostate:traced/stopped, pid:1580Another app is currently holding the Yum lock; Waiting for it to exit ...The other application Is:yummemory:37 M RSS (331 MB
// Note: you must understand the meaning of the question: instead of finding the same character from the two strings, you can find it in the process of comparing strings one by one! # Include # include # include using namespace STD; int gcd (int
node, such as attributes, functions, etc., are expanded with square brackets, and the property is preceded by the @ sign.The following XPath returns the files node with a file count of 1580:/hd/disk/files[text () = ' 1580 ']It is noted that the above contains a text (), which is a function of XPath, its function is to take out the text of the current node.The following XPath returns a partition with a file
It's going to be a little nagios, you know how to use it. # Add Nagios to Oinstall group #usermod-a-G Oinstall Nagios#!/bin/shdbversion=11Bdump=/u01/app/oracle/oradata/prod/dump/diag/rdbms/prod/prod/trace/alert_prod.logstate_ok=0state_warning=1state_critical=2state_unknown=3if [$dbversion = one]Then ins_log_pwd= $bdumpElseins_log_pwd= $ORACLE _base/admin/$SERVICE _name/bdump/alert_$oracle_sid.logfiif [' Tail-50 $ins _log_pwd | grep ' ora-' |grep-v-i-e ' 1013|1031|1144|1652|1722|8103|12012|3297|1
search for information. These expressions are composed of many methods.Node element search is the most frequent query method you will encounter. In the preceding XML document, the root HD contains the disk node. You can use the path to find these nodes, and use a forward slash (/) to separate the child nodes and return all elements that match the pattern. The following XPath statement returns all disk elements:/HD/Disk"*" Indicates "all. /HD/* indicates all nodes in HD.The following XPath retur
not found[[emailprotected] ~]# echo $?127[[emailprotected] ~]# cat /etc/issueecat: /etc/issuee: No such file or directory[[emailprotected] ~]# echo $?1程序执行有两类结果:程序的返回值;程序的执行状态结果;Directory Management class Commands:Cd,pwd,lsMkdir,rmdirmkdir [Options]/path/to/somewhere-p: No error when present, and can automatically create the required directories, recursively created by hierarchy [[emailprotected] tmp]# ls-ltotal 16drwx------2 root root 4096 Mar 19:49 gconfd-rootsrwxr-xr-x 1 root root 0 Mar 19:0
yuan.Pre-tax expenditure.
So what is the tax he should pay? This is a relatively complex knowledge. This article provides the formula and answer:(3902.6-1600) * 15%-125 =220.39(RMB)That is to say, the total tax paid by this person in 1st day of this month is220.39(RMB)
How much can he get in the end?4940-543.4-494.00-220.39= 3682.21 (RMB)
Let's look at another example. For a college student, the Unit promises a monthly salary of 2000.Therefore, the total social insurance individual payments = 2
command.
$ Echo 'tecmint team' | fold-w1
Sample Output
T
E
C
M
I
N
T
T
E
A
M
Note:-w1 only sets the length.
Now we will sort the results from every letter in the text file to obtain the 10 most common characters of the desired output frequency.
$ Fold-w1
Sample Output
8579
2413 e
1987
1875 TB
1644 I
1553 n
1522 o
1514 s
1224 r
1021 l
How is case sensitive? We used to ignore case sensitivity. Therefore, use the following command.
$ Fold-w1
Sample Output
11636
certain setups cause problems:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(E.g., dos fdisk, OS/2 FDISK)
Command (m for help): n # Add a new partitionCommand actionE extendedP primary partition (1-4)P # add primary partitionSelected partition 4First cylinder (1580-2610, default 1580): # default cylinder. press Enter.Using default value 15
most commonly used.
How do you look at a single letter? Then use the following command.
The code is as follows:
$ Echo ' Tecmint team ' | Fold-w1
Sample Output
[Code] t
E
C
M
I
N
T
T
E
A
M
Note:-W1 just set the length
Now we'll sort the results by breaking each letter from that text file to get the 10 most common characters for the desired output frequency.
$ FOLD-W1
Sample Output
The code is as follows:
8579
2413 E
1987 A
1875 T
1644 I
1553 N
1522 O
1514 S
1224 R
--Adding Test table space
sql> Create tablespace xff datafile '/u01/oradata/xifenfei.dbf ' size 10m autoextend on maxsize 100m;
Tablespace created.
--View Data File location
Sql> select name from V$datafile;
NAME
--------------------------------------------------------------------------------
+data/tasm/system01.dbf
+data/tasm/undotbs01.dbf
+data/tasm/sysaux01.dbf
+data/tasm/users01.dbf
+data/tasm/example01.dbf
/u01/oradata/xifenfei.dbf
6 rows selected.
--Create a test table
Sql>
special characters.The currently used text editor notepad++, as if there is a setting that can display all the characters.Found, in:Show spaces and tabs, display symbols, viewThen you can see the problem:The original error line number is 1580 rows:But the source of the 1580 lines of the alignment with a dot point of space, and the previous lines of the alignment of the arrows used to indicate the TAB key,
Org.jdom.input.saxbuilder;public class Sample1 {public static void main ( String[] args) throws exception{ Saxbuilder sb=new saxbuilder (); Document doc=sb.build ("Sample.xml"); Element root=doc.getrootelement (); List List=root.getchildren ("Disk"); for (int i=0;iThe output of the program:Disk information: partition drive: C partition Capacity: 8G Number of directories: 200 files: 1580-----------------------------------disk information: partit
, the file system is required to be mounted using the NOAC option; otherwise the ORA-27054 will be reportedSymptoms:If the snapshot (snapshot) control file is located to the NFS file system and is not mounted using the option "NOAC", The RMAN backup fails with a ORA-27054 error. According to Bug 5064356, if 10.2.0.4.0 or later is running, the NFS mount point NOAC option is no longer needed. However, this fix only appears to apply to specific file types, such as online redo logs, archived redo lo
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.