The labyrinth consists of N rows of M-column cells (n,m are less than 50), each of which is either empty or obstructed.
1 for open space 2 for obstacles
Now please find a shortest path length from start to end
The first row input n,m means there are n rows and m columns
Next, type 1 and 2 for open space an ...
Added by raydar2000 on Thu, 27 Jan 2022 20:58:15 +0200
I haven't traveled for a long time! Sensen decided to travel to Z province.
There are n cities in Z province (numbered from 1 to n) and m directional travel routes connecting the two cities (such as self driving, long-distance bus, train, plane, ship, etc.). Each time you pass a travel route, you need to pay the cost of the route (but there ma ...
Added by MesaFloyd on Thu, 27 Jan 2022 20:04:34 +0200
Original is not easy, useful, please point a praise, thank you!
161. Word length (15 points)
Your program reads a line of text separated by spaces into several words end. You have to output the length of each word. The words here have nothing to do with language and can include various symbols. For example, it's a word with a length of 4. ...
Added by tolli on Sun, 02 Jan 2022 20:24:06 +0200
1. Joseph Ring problem
N people numbered 1, 2,..., n sit around a round table in a clockwise direction, each holding a password (positive integer). At the beginning, select a positive integer m as the upper limit value of counting, start counting from 1 clockwise from the first person, stop counting when reporting to m, and the person reportin ...
Added by jon2396 on Fri, 19 Nov 2021 21:09:23 +0200
6-1 calculation results (15 points)
The way to calculate the score of gymnasts in gymnastics competition is to remove a maximum score and a minimum score and then calculate the average score. When the school inspects the examination of a subject in a class, it calculates the average score of the whole class. Artistic Gymnastics Gymnastics Clas ...
Added by jfdutcher on Wed, 13 Oct 2021 00:18:51 +0300