Category: string
The problem is from codeforces: http://codeforces.com/contest/265/problem/A This is a pure simulation problem, no difficulty at all. If the current instruction matches the colour on the current stone, move one position …
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 …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/262/A #!/usr/bin/env python n, k = map(int, raw_input().split()) s = raw_input().split() ans = 0 for x in s: ans += 1 if x.count('4') + x.count('7') …
December 30, 2012
algorithms, brute force, implementation, javascript, math, programming languages, python, string, tools / utilities, tricks, vbscript
In , the base 62 number conversion to base 10 is implemented. To extend the conversion to arbitrary bases, we can use base 10 as the intermediate base, i.e. …
Base62, like Base10 (decimal), Base16 (hexadecimal), is a number system. Base62 uses 62 possible ASCII letters, 0 – 9, a – z and A – Z, therefore it is often …