Heron’s Formula is a method to compute the area of a triangle when you know its three sides, a, b, and c. The area S is then based on p where and can be easily implemented …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/268/C This problem is put at the third problem in the online contests. But it seems too easy for being in that place. The sample …
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, …
Previous Tutorial on nodejs can be found at . The nodejs executable allows you to set up a webserver quickly and easily via Javascript, for example, the following illustrates …
node.js (http://nodejs.org) starts to gain its popularity these days. It is a Javascript-based event-driven, non-blocking IO, lightweight Server side toolkit, which can be easily used to build e.g. web …
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 …