Tag: Python solution
The problem is from codeforces: http://www.codeforces.com/problemset/problem/102/B The input can be very large, you might wonder to use long arithmetic via arrays. However, it might be easier than you think. …
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 …
The problem is from codeforces http://www.codeforces.com/problemset/problem/158/B Solution is easy: First you need to sort the group numbers in desending order. You create two index pointers, pointing to the start …
This is from http://www.codeforces.com/problemset/problem/131/A The python does not allow altering string, because it seems the string is immutable. For example, if you try the following. s = "1234" s …
May 15, 2012
algorithms, beginner, brute force, code, code library, codeforces, implementation, math, programming languages, python, tricks
The problem is from codeforces, http://www.codeforces.com/problemset/problem/11/B Jack is originally standing at zero point. He can walk left or right at an increasing step. We suppose Jack always walks towards …