Raptor, raptors
0. If a positive integer is equal to the Cube sum of each number, it is called the number of armlands. For example, 407 = 43 + 03 + 73 is a number of armlands. Calculate the number of Armstrong within 1000.
1. A company uses a public phone to transmit data. The data is a four-digit integer and encrypted during the transmission process. The encryption rules are as follows: add 5 to each number, then, the number is replaced by the remainder of 10, and the first and fourth digits are exchanged, and the second and third digits are exchanged.
For example, enter 1234.
Output: 9876
2. A rabbit was born every month from 3rd months after birth. After the third month, a rabbit was born every month. If the Rabbit does not die, ask the end Of the nth month.
3. Use the iteration method to find the square root of a number a. The formula for finding the square root is:
(N = 1, 2, 3, 4 ,......), Take a/2 as the initial value of x0, iteration end conditions take | xn-xn-1 | ≤ 10-5.
4. There are 3 extracurricular groups: Physical groups, chemical groups and biological groups. Today, five students, Zhang, Wang, Li, Zhao, and Chen, are known to be members of the physical group. Zhang, Li, and Zhao are members of the chemistry group, and Li, Zhao, and Chen are members of the biological group. If you want to select three leaders in each of the three groups, one of them can only serve as the group leader. There are a total of options.
5. 75 children go to the playground. They can ride a carousel, ride a slide track, and take a spaceship. 20 of them are known to have played these three things, and 55 have played at least two of them. If the same cost is 5 yuan, and the total income of the playground is 700, we can see that famous children have not played any of them.
6. The ages of Zhang San, Li Si, Wang Wu, and Liu are listed in an ascending arithmetic deviation sequence. The age of the four of them is 26, and the age of the four is multiplied by 880. The first 20 items of the arithmetic deviation sequence are obtained.
Output Format: 1, 2,... 20
7. output the sum of all even numbers and all odd numbers within 100 (excluding 100) respectively.
8. A positive integer may be expressed as the sum of n (n> = 2) continuous positive integers, for example:
15 = 1 + 2 + 3 + 4 + 5 = 4 + 5 + 6, 15 = 7 + 8
Write out an algorithm. Based on any input positive integer, output all consecutive positive integer sequences that meet this requirement. Each sequence is output in ascending order. If there is no matching sequence, "NONE" is output ".
9. According to the Nocomachns theorem, the cubes of any positive integer n can be expressed as n consecutive odd numbers and.
13 = 1
23 = 3 + 5
33 = 7 + 9 + 11
43 = 13 + 15 + 17 + 19
Give the corresponding expression algorithm after given n.
Author: Guo ** Hua *