摘要:
ID CodesIt is 2084 and the year of Big Brother has finally arrived, albeit a century late. In order to exercise greater control over its citizens and ... 阅读全文
摘要:
BandwidthGiven a graph (V,E) where V is a set of nodes and E is a set of arcs in VxV, and anorderingon the elements in V, then thebandwidthof a nodevi... 阅读全文
摘要:
Krypton FactorYou have been employed by the organisers of a Super Krypton Factor Contest in which contestants have very high mental and physical abili... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int visit[20]; 8 9 int isPrime(int n) {10 for (int i = 2;i * i > n) {39 ... 阅读全文
摘要:
Problem A: Fractions Again?!Time limit: 1 secondIt is easy to see that for every fraction in the form(k> 0), we can always find two positive integersx... 阅读全文
摘要:
Problem D - Maximum ProductTime Limit: 1 secondGiven a sequence of integersS = {S1, S2, ..., Sn}, you should determine what is the value of the maximu... 阅读全文
摘要:
DivisionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits0through9once each, such that the first n... 阅读全文
摘要:
The Falling LeavesEach year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by t... 阅读全文
摘要:
Not so MobileBefore being an ubiquous communications gadget, amobilewas just a structure made of strings and wires suspending colourfull things. This ... 阅读全文
摘要:
TreeYou are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the bin... 阅读全文