add new task description

This commit is contained in:
Yesen 2023-10-10 15:38:21 +03:00
parent 7803f8a9ad
commit a63f51f019

View File

@ -29,6 +29,19 @@ if the number is greater than 100, then break;in other cases, print this number
|:-------------|:---------------| |:-------------|:---------------|
|Write a program that reads an integer from user inputn (non-negative), outputting this number to the console along with the word "programmer" correctly modified so that the robot can communicate normally with people, for example: 1 programmer, 2 programmers, 5 programmers| Напишите программу, считывающую с пользовательского ввода целое число n (неотрицательное), выводящее это число в консоль вместе с правильным образом изменённым словом "программист", для того, чтобы робот мог нормально общаться с людьми, например: 1 программист, 2 программиста, 5 программистов| |Write a program that reads an integer from user inputn (non-negative), outputting this number to the console along with the word "programmer" correctly modified so that the robot can communicate normally with people, for example: 1 programmer, 2 programmers, 5 programmers| Напишите программу, считывающую с пользовательского ввода целое число n (неотрицательное), выводящее это число в консоль вместе с правильным образом изменённым словом "программист", для того, чтобы робот мог нормально общаться с людьми, например: 1 программист, 2 программиста, 5 программистов|
- [Sapper game](sappeer.py)
The program that accepts as input : number of rows, columns and bombs and outputs the table where:
1) numbers - the count of bombs nerby and also diagonally within 1 cell
2) '*' - bombs
3) '.' - there are not bombs nearby this cell
__*Plan of solution*__:
1) create a two-dimensional list
2) fill the cells with zeros
3) -1 - bombs, fill the bombs into the cells according to the coordinates, fill in the numbers depending on the location of the bombs
4) coordinates i(row number) -1 j(column number)-1, di dj \ i+di\ j + dj\ di dj -1..1
- [Sum_num_from_last](sum_num_from_last.py) - [Sum_num_from_last](sum_num_from_last.py)
A program that takes the left and right character from each character and combines them into one number. For the first and last numbers, the left and right numbers are the last and first numbers respectively A program that takes the left and right character from each character and combines them into one number. For the first and last numbers, the left and right numbers are the last and first numbers respectively