The puzzle is from Timus Online Judge. Despite detailed description, which may be confusing, the puzzle is really simple to solve. It asks you to find out the identical …
Python programming language provides a neat syntax to reverse a string, tuple (a read-only list, immutable) or a list (array). The syntax is var which returns a reverse copy of the var. …
This puzzle from Timus Online Judge is interesting and kinda practical in reality. This problem can be used to study the traffic jams. Put it simpler in other words. …
The problem is from Codeforces: The number of trailing zeros can be computed by checking the number of divisors (2 and 5) for all numbers. The minimal divisor number …
The LOGO Programming language is fun to learn. It was first designed for teaching children to program as their first programming language. The Turtle Graphics is easy to understand. …
This problem is from Timus Online Judge. The original problem description can be found here. There are k steaks that can be cooked at the same time. So …