Category: python
In , two equations are used and compare the efficiency of computation of the math constant . The following are some commonly-used equations to compute the We pick the …
Disjoint Sets is one of the most powerful and yet simple data structure. The idea of Disjoint Sets can be perfectly applied in finding the minimal spanning tree. The …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/1/B The implementation may not be so easy without Regual Expressions. The core idea is to provide conversion between base 10 and base 26. For …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/239/A It is a simple math problem: finding the numbers x that satisify where y, k, and n are given;
The problem is from codeforces: http://www.codeforces.com/problemset/problem/237/A If there are two or more people coming to buy at the same time, and there is no enough cashers, just simply increase …