Category: python
The problem is from codeforces: http://codeforces.com/problemset/problem/197/B It has been a while since last time I submitted Python solutions to codeforces. This time, I pick a math problem that can …
Please see some notes at here: https://helloacm.com/notes-on-python-syntax/ Python is great, when I learn more, I really find it flexible and powerful. 1. Initialise one dimension array by zeros x …
Simulated Annealing (SA) is a meta-hurestic search approach for general problems. It is based on the process of cooling down metals. The search algorithm is simple to describe however …
Sometimes, you might want to wrap a binary file (image, executable) in your source code, to eliminate the hassle when deploying your application. You might consider using resource file …
Python is used widely in linux, windows, and other platforms to provide useful utilities. In order to write utilities, such as the shell scripts in Linux, you might need …