Category: math
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 …
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 …
In , the euclidean algorithms i.e. gcd and lcm are presented. Especially the gcd function, which computes the greatest common divisor, is fundamentally important in math and can be …