Tag:Even numbers

  • Sharding JDBC is used to separate database and table, and read and write are separated


    Sub database and sub table Why do we have to divide the database and table? The amount of data in the database is uncontrollable. With the development of time and business, there are more and more data in the table. If you curd the database table again, it will cause performance problems. In order to […]

  • In a word, it’s a recurrence


    Modification record: 2021.2.6 The format of the problem is unified 2021.2.3 At the end of the article, we add the recursive review link of big brother Ah, what is recursion? Namely: fromKnownreachunknown。Using observation to find the previous known data, we can get the conclusionRecurrence formulaAnd then the recursive formula is used to solve the problem. […]

  • C practical exercise topic 3


    Title:An integer, after adding 100, is a complete square number, and then 168 is a complete square number. What is the number? Program analysis: Suppose the number is X. 1. Then: x + 100 = N2, x + 100 + 168 = m2 2. Calculation equation: M2 – N2 = (M + n) (M – […]

  • Using translate (- 50%, – 50%) causes text blur


    When writing a toast component, the text on the component will become blurred. It is found that the toast uses thetransform: translate(-50%, -50%); ↑It’s the same ↑What it looks like after using translate In the process of reproduction, it is found that there is no blurring problem in Firefox, but there will be blurring problems […]

  • Java inserts page and section breaks into word documents


    summary In word documents, when we want to force pagination at a certain position, we can insert page break to achieve this. At this time, the content after the page break will automatically jump to the next page. Insert a section break to create a new section to set different text line numbers, column numbers, […]

  • Leetcode 1025. Divisor game | Python


    1025. Divisor game Source: leetcode https://leetcode-cn.com/problems/divisor-game subject Alice and Bob play games together. They take turns. Alice started first. At first, there was a number n on the blackboard. In each player’s turn, players need to do the following: Choose any onex, satisfy0 < x < NAndN % x == 0 。 useN – xReplace […]

  • JQuery filter selector


    //Entry function $(document).ready(function() { //Even digit var jqLi = $(“ul li:odd”); jqLi.css(“margin”, 5); jqLi.css(“background-color”, “red”); //Odd digit jqLi = $(“ul li:even”); jqLi.css(“background-color”, “yellow”); //Specifies the index value element jqLi = $(“ul li:eq(0)”); jqLi.css(“background-color”, “green”); }); Beijing Shanghai Guangzhou Roasted Duck Beer self-help

  • Chapter 1: pythagorean array (2)


    Pythagorean array theorem Pythagorean array theorem: each primitive Pythagorean array (a, B, c) (where a is odd and B is even) can be obtained from the following formula: a = st\\ b = \frac{s^2-t^2}{2}\\ c = \frac{s^2 + t^2}{2} amongs>t\geq 1Is any odd number that has no common factor.The proof process is as follows:Considering the […]

  • JS native exercises


    1. Output the number between 1 and 10000       for(i=1;i<=10000;i++)           {         document.write(i + ““) } 2. Find the sum of all even numbers between 1 and 100 3. Find the sum of all odd numbers between 1 and 100 4. Find the number within […]

  • Chapter 1: pythagorean array (1)


    Pythagoras theorem (Pythagorean theorem) indicates that the sum of the squares of the lengths of the two right angles of any right triangle is equal to the square of the length of the hypotenuse. It is expressed by formula a^2 + b^2 = c^2 The first question is whether there are infinitely many Pythagorean arrays […]

  • Python sequence (5) slicing operation


    Function: intercept any part of the list. Slicing applies to lists, tuples, strings, range objects, and so on.. Format::] slicing is done with three numbers separated by two colons. The first number indicates the slice start position (the default is 0). The second number indicates the slice to (but not included) position (default is list […]

  • Python Beginner – enter a number to determine parity


    Num = int (input (“please enter an integer”)) if num%2 == 0: Print (“this number is even”, Num) else: Print (“this number is odd”, Num)