Luogu P5108 looks up at the half moon night sky (suffix array)

meaning of the title Title Link Sol warning: the following is only 95 points. I took 1w + pictures and found no mistakes. I said that I could do nothing We consider the ranking of each string to update the answer. Obviously, the prefix of suffix \ (1 \) must be the answer with the smallest dictionary order of the current length, but not necessa ...

Posted by wizardry on Sat, 30 Nov 2019 12:44:18 +0100

Two methods of adding system call under Linux(Ubuntu) (kernel compilation method module addition)

It is really too pit, really want to Tucao about this operation system practice, each time is compile the kernel. The textbook was written in 2009, all the code before kernel 3.3. I record the system call experiment, hope you can avoid stepping on the pit. Method 1: kernel compilation Here I give you a link. This blog is wel ...

Posted by derrick1123 on Sat, 30 Nov 2019 12:19:12 +0100

How to make an array randomly disordered, that is, disordered order?

How to make array elements out of order? At the beginning, I was a little confused. I just thought of using Random to generate a Random integer rd, and then let the array elements move rd positions forward. However, this method is not really disordered arrangement. Obviously, we can see the relationship with the arrangement of t ...

Posted by woolyg on Sat, 30 Nov 2019 11:53:07 +0100

Construction of mobile automation testing framework

Some thoughts on the big framework: What functions need to be implemented by the framework In the early stage, data and business need to be separated to facilitate maintenance The management of test case set shall be convenient, so as to re Run a single case in case of exception Use case design needs to be as simple as possible and provide ...

Posted by deezerd on Sat, 30 Nov 2019 11:48:00 +0100

mybatis implements the user-defined sql parameterization and binds the parameters within the parameters

In some business scenarios, multiple tables are needed to perform statistical operations jointly. In such scenarios, the logic of sql is often complex, and it is difficult to write it out easily by using mybatis. At the same time, various business variables are very large, so it is a little weak to deal with it based on mybatis. ...

Posted by loveitandhateit on Sat, 30 Nov 2019 11:12:16 +0100

Operation of basic (15) slice of golang

square-gopher.png slice operation Slice-Bread-Step-27.jpg slice add element s := arr[2:6] fmt.Println(cap(s)) //6 fmt.Println(len(s)) //4 s1 := s[3:5] fmt.Println("s = ",s) fmt.Println("s1 = ",s1) s2 := append(s1,10) s3 := append(s2,11) s5 := append(s3,12) s2, s3, s5 = [5 6 10] [5 6 10 ...

Posted by tullmejs on Sat, 30 Nov 2019 10:24:19 +0100

Provide a Chinese ID card number judgment class

The purpose of this paper is to realize a function to judge whether the ID number is valid or not   First, create an ID base class: /// <summary> ///ID card of mainland China /// </summary> public abstract class ChineseIdBase { /// <summary> ///Verify 15 digit ID number / ...

Posted by jamesh on Sat, 30 Nov 2019 09:58:19 +0100

Programming thinking and os Library of Python 3

1. Top down (analysis), bottom up (execution) -A general problem is expressed in the form of several small problems. The same method is used to further decompose the small problems until they can be solved simply and clearly by computer -Unit test and gradual assembly. Follow the top-down path. Until now, all parts of the sys ...

Posted by kankaro on Sat, 30 Nov 2019 09:55:42 +0100

java uses Queue to execute tasks asynchronously in queues

First, create a total Handler (queue unified processing interface), which is called QueueTaskHandler public interface QueueTaskHandler { void processData(); } Then write a queue service class, and don't explain it much. My comments are very clear import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframew ...

Posted by patnet2004 on Sat, 30 Nov 2019 09:36:48 +0100

Multiplication and addition of data structure-02-linear structure 2-ary polynomial (20 points)

Multiplication and addition of 02-linear structured 2-ary polynomial (20 points) The design function calculates the product sum of two univariate polynomials. Input format: The input is divided into two lines, each giving the number of nonzero polynomial terms, and then exponentially decreasing a polynomial nonzero coefficie ...

Posted by matt_wonders on Sat, 30 Nov 2019 09:36:18 +0100