Tag: algorithm
The problem is from codeforces: http://www.codeforces.com/problemset/problem/268/C This problem is put at the third problem in the online contests. But it seems too easy for being in that place. The sample …
The problem is from codeforces: http://www.codeforces.com/contest/268/problem/B This is clearly a math counting problem. In easy description, the problem can be described as: how many numbers are there in this pattern, …
This problem is from codeforces: http://www.codeforces.com/problemset/problem/268/A This is a simple math problem. Almost every solution needs to store the colours of home and away. Counting the occurrences that the home colour …
PIBAS is simple, it only has 2 possible operations: string assignment (e.g. A=’abc’) and printing (e.g. ?A). It supports only one function which is similar to the substr in Javascript …
January 24, 2013
algorithms, beginner, brute force, codeforces, greedy algorithm, implementation, math, programming languages, python, search, simulation, tricks
The problem is from codeforces: http://www.codeforces.com/contest/265/problem/B This problem is not difficult, but it took me nearly 1:30 hr to get it right during the contest. I thought at first, the …