Tag: online judges
The problem is from codeforces: http://codeforces.com/problemset/problem/298/B The note given in the problem description pretty much explains the problem clearly. In every moment, the ship can choose to stay put or …
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 …
The problem is from codeforces: http://codeforces.com/contest/263/problem/A It looks complex but in fact it is not. There is only one ‘1’ element in this fixed-5X5 matrix. The shortest path to the …