Tag: code
July 1, 2012
algorithms, beginner, code, code library, implementation, interview questions, math, programming languages, python, technical
GCD (Greatest Common Divisor), in mathematics, is refered to the largest number that divides two or more non-zero integers without a remainder. For example, the GCD of 8 and …
In Delphi, the TFileStream can be used to stream the file reading and writing. Below is a sample usage that appends a ‘A’ to a file everytime. program Test; …
I guess, quite often, you see the usage of __name__ in Python. Yes, it is a keyword (attribute) associate to a module. It can be used to tell if …
There are many available packages that you can use in creating of windows/dialogs in Python script. For example, The most important can be found below: Tkinter: Tkinter is the …
May 19, 2012
beginner, brute force, code, code library, codeforces, implementation, math, programming languages, python, tricks
The problem is from codeforces http://www.codeforces.com/problemset/problem/82/A This is interesting because it seems like those guys thing: acting strange. This problem can be transformed into the following: 12345 1122334455 11112222333344445555 …