当前位置:首页
> Luz 第2775页
Luz 管理员
暂无介绍
89860 篇文章 33 次评论PROGRAMMING:Individual statistics
Given an integer $$n $$, count the number of times each different digit appears. For example, given $$n $$= $$100811 $$,…
PROGRAMMING:The k-th step of sorting by choice
This problem requires the use of selection sorting, the given $$n $$integers from small to large to sort, output the $$k…
PROGRAMMING:Are you in line?
This problem requires writing a program to store the input $$n $$integers into the array $$a $, and judge whether they a…
PROGRAMMING:Output bubble sort process
Input n (1 ≤ n ≤ 10) integers, and sort them from small to large by bubble sorting method, with a total of n-1 times, an…
PROGRAMMING:Building a matrix
Enter the integer n (2 ≤ n ≤ 10) to construct an n × N, the outer ring element is 1, the inner element is 0, and the mai…
PROGRAMMING:Coconuts, Revisited
The short story titled Coconuts, by Ben Ames Williams, appeared in the Saturday Evening Post on October 9, 1926. The sto…
PROGRAMMING:Assignment problem
There are n jobs assigned to n people. The cost of assigning work I to the j-th person is CIJ. Design an algorithm, for…
PROGRAMMING:Caesar Password
Problem Description:Caesar cipher is a simple classical cipher, and its encryption principle is: select an integer k (0…
PROGRAMMING:T9 keyboard
After the popularity of iPhone and Android, almost all smart phones are equipped with large screens, which can be used t…
PROGRAMMING:0-1 Backpack
Given n (n ˂ = 100) items and a backpack. The weight of item I is wi, the value is VI, and the capacity of backpack is C…