15
Last seen 4 years ago
Member for 6 years, 2 months, 29 days
Difficulty Normal
Classic approach to task! But you can use syntax sugar with cycles "for", this method in python more priority.
More
The first of all, define coordinates of points Y, M, C, S. Ater this calculate path between searched points and point Y. Function "div_points" calculate path between two points.
More
Good fast resolving!
But big constructions is difficult to read and accept in applications.
More
Work resolving! You can work with string like a list without transform text to list and joining elements. This method simplify your code and make it more readable.
More