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 problem is from http://www.codeforces.com/problemset/problem/190/A It is a pure math problem. However, you have to be careful enough to consider different cases. For example, if there are no adults, …
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 …