Category: brute force
July 16, 2012
algorithms, batch script, beginner, brute force, implementation, math, programming languages, technical, tricks, windows, windows command shell
Windows Batch File (*.bat, *.cmd) is probably the most well-known exectuable file formats because of its simplicity, i.e. each line corresponds to a command for shell to execute. This …
Many articles have discussed the variables scopes in Javascript. Today, I will explain it during my own experiments. The javascript has only two scopes, local or global. It does …
, the base of the natural logarithm (e.g. ) can be expressed as the following equation: The Euler’s formula involves , which is: The Euler’s Identity is the special …
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 …
A prime number is a positive natural number that is greater than 1 and no other divisors other than 1 and itself. For example, 2, 3, 5 are primes …