当前位置:首页
> Luz 第2744页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:Matrix transpose
Given an n × The integer matrix of n (1 ˂ = n ˂ = 20) is transposed according to the main diagonal, that is, row and col…
PROGRAMMING:Ask for the last person in the circle
There are n (n ˂ = 50) people in a circle, starting from 1, starting from the first person, and starting from 1 to m (m…
PROGRAMMING:Count words and spaces
There are three lines of text, find out how many spaces and how many words there are (specify one or more spaces between…
PROGRAMMING:Find the value of S = a + AA + AAA +... + AA... A
Find the value of S = a + AA + AAA +... + AA... A (n a), where a is a number, such as 2 + 22 + 222 + 2222 + 22222 (n = 5…
PROGRAMMING:Count the number of uppercase letters, lowercase letters, spaces and punctuation marks
Input n (1 ˂ = n ˂ = 10) lines of characters (within 80 characters per line), and count the number of uppercase letters,…
PROGRAMMING:Substring
Write a function to output n characters starting from the ith character in a string, such as the string "I love China!",…
PROGRAMMING:A cunning rich man
The old housekeeper is a smart and capable man. He worked for a rich man for 10 years, who wanted to make his accounts c…
PROGRAMMING:Exchange maximum decimal position
Enter n (1 ˂ = n ˂ = 20) integers with no more than 2 bits, and exchange the smallest number with the first one, and exc…
PROGRAMMING:Narcissistic number
Print out all the Narcissus numbers. The so-called "narcissus number" refers to a three digit number whose cubic sum of…
PROGRAMMING:Write a prime function
Write a prime function fun. Input an integer n in the main function, judge whether the output is a prime in the function…