I’ve been learning python for some time and would like note the nice language aspects of Python programming syntax. 1. Multiple statements on a single line. In python, normally, …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/124/A Simply a math problem, however, using brute-force will pass the tests since the tests are weak (all numbers are smaller than 100) s …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/173/A This is the first problem that I submited in codeforces. It is a math problem that computes how many games for two players …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/69/A The tests were not strong because I failed at the 81-th test on the first submission using a wrong algorithm (actually I mis-understood …
In linux, the which command is to search for executables in the given $PATH variables. In windows, the which command can be easily created simply a few lines of …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/96/A The problem is another easy one. It asks you to check if there are more than 7 players that belong to the same …