摘要:
matrixProblem DescriptionGiven a matrix withnrows andmcolumns (n+mis an odd number ), at first , you begin with the number at top-left corner (1,1) an... 阅读全文
摘要:
sequence2Problem DescriptionGiven an integer arraybiwith a length ofn, please tell me how many exactly different increasing subsequences.P.S. A subseq... 阅读全文
摘要:
sequence1Given an arrayawith lengthn, could you tell me how many pairs(i,j)( i #include #include #include #include #include #include #include #include... 阅读全文
摘要:
1 //http://www.cnblogs.com/HarryGuo2012/p/4524041.html 2 3 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 1... 阅读全文
摘要:
D. Spongebob and SquaresSpongebob is already tired trying to reason his weird actions and calculations, so he simply asked you to find all pairs of n ... 阅读全文
摘要:
C. Day at the BeachOne day Squidward, Spongebob and Patrick decided to go to the beach. Unfortunately, the weather was bad, so the friends were unable... 阅读全文
摘要:
B. Spongebob and JokeWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patri... 阅读全文
摘要:
A. Patrick and ShoppingToday Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two s... 阅读全文
摘要:
Revenge of FibonacciProblem DescriptionThe well-known Fibonacci sequence is defined as following:Here we regard n as the index of the Fibonacci number... 阅读全文