摘要: 二维树状数组。。。。 MatrixTime Limit:3000MSMemory Limit:65536KTotal Submissions:15575Accepted:5854DescriptionGiven 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, j] = 0 (1 2 #include 3 #include 4 5 using names... 阅读全文
posted @ 2013-10-11 17:50 码代码的猿猿 阅读(185) 评论(0) 推荐(0) 编辑
摘要: B. Two HeapsValera has2·ncubes, each cube contains an integer from10to99. He arbitrarily choosesncubes and puts them in the first heap. The remaining cubes form the second heap.Valera decided to play with cubes. During the game he takes a cube from the first heap and writes down the number it h 阅读全文
posted @ 2013-10-11 11:42 码代码的猿猿 阅读(525) 评论(0) 推荐(0) 编辑