Tag: string algorithm
The problem is from codeforces: http://www.codeforces.com/problemset/problem/125/B The given input has no format errors, which makes it easy to solve because you don’t have to consider unregular situations such as …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/118/A Python is good at string manipulations. The problem is easy and the solution is straightforward. Just read the problem statement carefully… I didn’t …
May 20, 2012
algorithms, beginner, code, codeforces, data structure, implementation, programming languages, python, string, technical
The problem is from codeforces: http://www.codeforces.com/problemset/problem/158/C Using a stack will help solve this problem. Luckly, python supports stack structure by using list. The append() and pop() are used to …
The problem is from codeforces http://www.codeforces.com/problemset/problem/12/A This is probably the easiest problem I’ve ever seen in codeforces…. no tricks, no math or algorithms. It is very straightforward. The python solution …
The problem is from codeforces http://www.codeforces.com/problemset/problem/49/A Just came back from Tesco, have shopped for the food next week. Feeling a bit tired, however, I enjoy solving small problems using …