上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页

2016年10月7日

摘要: Description Let N be the set of all natural numbers {0 , 1 , 2 , . . . }, and R be the set of all real numbers. wi, hi for i = 1 . . . n are some elem 阅读全文
posted @ 2016-10-07 22:26 阿宝的锅锅 阅读(200) 评论(0) 推荐(0)
 
摘要: 转自http://blog.csdn.net/liujian20150808/article/details/50752861 单调栈的定义: 单调栈就是栈内元素单调递增或者单调递减的栈,单调栈只能在栈顶操作。 为了更好的理解单调栈,则可将单调栈用生活情形模拟实现,例如: 我们借用拿号排队的场景来说 阅读全文
posted @ 2016-10-07 16:02 阿宝的锅锅 阅读(190) 评论(0) 推荐(0)

2016年10月6日

摘要: Description John never knew he had a grand-uncle, until he received the notary's letter. He learned that his late grand-uncle had gathered a lot of mo 阅读全文
posted @ 2016-10-06 22:32 阿宝的锅锅 阅读(126) 评论(0) 推荐(0)
 
摘要: Description The Recaman's sequence is defined by a0 = 0 ; for m > 0, am = am−1 − m if the rsulting am is positive and not already in the sequence, oth 阅读全文
posted @ 2016-10-06 21:55 阿宝的锅锅 阅读(396) 评论(0) 推荐(0)

2016年10月5日

摘要: Description Every year, Farmer John's N (1 <= N <= 20,000) cows attend "MooFest",a social gathering of cows from around the world. MooFest involves a 阅读全文
posted @ 2016-10-05 22:47 阿宝的锅锅 阅读(158) 评论(0) 推荐(0)
 
摘要: 【题意】给你一个矩阵(初始化为0)和一些操作,1 x y a表示在arr[x][y]加上a,2 l b r t 表示求左上角为(l,b),右下角为(r,t)的矩阵的和。 【思路】帮助更好理解树状数组。 阅读全文
posted @ 2016-10-05 22:07 阿宝的锅锅 阅读(134) 评论(0) 推荐(0)

2016年10月1日

摘要: Description Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we have A[i, 阅读全文
posted @ 2016-10-01 16:25 阿宝的锅锅 阅读(154) 评论(0) 推荐(0)
 
摘要: Description Seiji Hayashi had been a professor of the Nisshinkan Samurai School in the domain of Aizu for a long time in the 18th century. In order to 阅读全文
posted @ 2016-10-01 15:57 阿宝的锅锅 阅读(158) 评论(0) 推荐(0)
 
摘要: 参考资料:http://blog.csdn.net/z309241990/article/details/9615259 一维树状数组: 使用情况:当要频繁的对数组元素进行修改,同时又要频繁的查询数组内任一区间元素之和的时候,可以考虑使用树状数组. 一、回顾一维树状数组 假设一维数组为A[i](i= 阅读全文
posted @ 2016-10-01 11:15 阿宝的锅锅 阅读(216) 评论(0) 推荐(0)

2016年9月30日

摘要: Description Farmer John's N cows (1 <= N <= 100,000) are lined up in a row.Each cow is labeled with a number in the range 1...K (1 <= K <=10,000) iden 阅读全文
posted @ 2016-09-30 21:18 阿宝的锅锅 阅读(242) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 18 下一页