Tag: Python solution
This puzzle (click to submit solution to Timus Online Judge) is interesting. It is like a IQ test question at the beginning. Find out the missing number. The puzzle …
The problem is from codeforces http://codeforces.com/problemset/problem/221/B The problem statement is clear. The answer is to count the number of divisors that has at least one common digit with the …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/26/A The input range is small which means even the worst brute-force methods can pass the test. The straightforward implementation is . Defining a …
The problem is from codeforces http://codeforces.com/problemset/problem/2/A To solve this problem, you will probably need to know the dictionary. In Python, the dictionary structure can be declared using notation {}. …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/151/A Based on the Note, it is purely a math problem (the equations can be easily derived.) The Python solution can be easily obtained. …