In Python 2.x, the function range(x, y, s) generates a actual list of elements from x to y – 1 step s. The other syntax is range(a) and range(a, b) which is the same as range(0, a, 1) and range(a, b, 1) respectively. For example, …
October 18, 2013
16 bit, assembly language, code, DOS, DOSBOX, I/O File, implementation, interpreter / compiler, memory, MSDOS 16-bit, programming languages, python, tools / utilities, tricks, windows
Binary files are not complex. The DOS .COM format is simple. The following demonstrates the idea of converting a short message (ASCII text) to .COM executable. As we know, …
The problem is from codeforces: http://codeforces.com/problemset/problem/347/B It has been a while and I just pick another easy math problem to update the blog. The problem states that only maximum 1 …
The Halting Problem is one of the most classic and well-known problem in computational theory. It can be stated as “Given the description of any computer programs, decide whether …
The problem is from codeforces: http://codeforces.com/problemset/problem/298/B The note given in the problem description pretty much explains the problem clearly. In every moment, the ship can choose to stay put or …