Tag: math
The problem is from codeforces: http://www.codeforces.com/problemset/problem/227/A The picture vividly illustrates the problem statement. Given 3 Points A, B and C, you are required to find out the direction. Read …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/228/A The answer is to count the unique number of integers and substract from four. The SQL to the answer is: select 4 - …
Given two rectangles (as shown in the following figure), , are lower-left points while and are top-right points. We want to find out whether these two rectangles overlap each …
The remainder computation on two integers a and b can be normally simply expressed as %, or mod in most of the current modern programming languages. The process of …
September 16, 2012
algorithms, batch script, beginner, code, code library, delphi, encryption, implementation, programming languages, string, tools / utilities, windows, windows command shell, windows scripting host
Rot13 and Rot5 are two ASCII rotation scheme that are made for alphabetic and digits respectively. The Rot13, namely, rotates the letter by 13 places, ‘A’ to ‘N’, ‘B’ …