![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树状数组
Hold_My_Own
When the dust settles, and it will, we'll see.
展开
-
(HihoCoder - 1336)Matrix Sum
(HihoCoder - 1336)Matrix Sum You are given an N × N matrix. At the beginning every element is 0. Write a program supporting 2 operations: 1. Add x y value: Add value to the element Axy. (Subscripts starts fro原创 2017-09-22 21:36:34 · 349 阅读 · 0 评论 -
(HDU - 5775)Bubble Sort
(HDU - 5775)Bubble Sort P is a permutation of the integers from 1 to N(index starting from 1). Here is the code of Bubble Sort in C++. for(int i=1;i<=N;++i) for(int j=N,t;j>i;—j) if(P[j-1] > P[j])原创 2017-09-23 10:50:37 · 472 阅读 · 0 评论 -
(HDU - 2852)KiKi's K-Number
(HDU - 2852)KiKi’s K-NumberTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4230 Accepted Submission(s): 1917Problem DescriptionFor the k-th nu原创 2017-09-24 10:48:15 · 459 阅读 · 0 评论 -
(POJ - 2299)Ultra-QuickSort
(POJ - 2299)Ultra-QuickSort In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the se原创 2017-09-18 21:18:57 · 425 阅读 · 0 评论 -
(POJ - 2352)Stars
(POJ - 2352)Stars Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not hig原创 2017-09-19 16:46:19 · 403 阅读 · 0 评论 -
(CSU - 1770)按钮控制彩灯实验
(CSU - 1770)按钮控制彩灯实验 应教学安排,yy又去开心的做电学实验了。实验的内容分外的简单一串按钮通过编程了的EEPROM可以控制一串彩灯。然而选择了最low的一种一对一的控制模式,并很快按照实验指导书做完实验的yy马上感觉到十分无趣。于是他手指在一排按钮上无聊的滑来滑去,对应的彩灯也不断的变化着开关。已知每一个按钮按下会改变对应一个彩灯的状态,如此每次yy滑动都会改变一串彩灯的状态。现已知彩灯最初的状态原创 2017-09-22 09:28:07 · 658 阅读 · 0 评论