主席树太强大了,,如果仅仅用来求第k大就太屈才了。。貌似和HDU4605差不多,那个是在图上根据点的顺序建立主席树,这个是根据年龄大小 或者等级高低建立主席树。题意 大致就是一个二维区间的求和,但是数量级很大,显然不能直接求。一个想法是可以二维线段树,但是这样显然会MLE。另外一个还是主席树,以ag...
分类:
其他好文 时间:
2014-12-08 21:14:46
阅读次数:
285
/**
*
*
* Description:将十进制数转成任何指定的进制数
*
*
* Copyright:copyright (c) 2013
*
*
* Create Date:2013-12-21
*
*
* Company:ShangHai University
*
*
* @author WANGXU
* @versionv1.1
*...
分类:
其他好文 时间:
2014-12-06 19:31:22
阅读次数:
175
The employees of the R1 company often spend time together: they watch football, they go camping, they solve contests. So, it's no big deal that sometimes someone pays for someone else.
Today is the...
分类:
编程语言 时间:
2014-12-04 23:16:43
阅读次数:
244
A couple of years ago, a new world wide crisis started, leaving many people with economical problems. Some workers of a particular company are trying to ask for an increase in their salaries.
The com...
分类:
其他好文 时间:
2014-12-04 21:40:20
阅读次数:
289
题意:给一个目标值goal,然后再给一个数num,将num分解,比如 给目标值50,num为12346 num可以分解为 1 2 34 6 这么4部分,要求部分和尽量接近目标值但不能大于目标值,求最优分解;
思路:深搜每次分割部分的起点,更新最优解的时候更新一下路径,以前也是被路径打印给困惑了,其实和更新最优值思想一样,可以设一个ans_path[] 数组,更新最优值的时候顺便更新一...
分类:
其他好文 时间:
2014-11-27 16:19:13
阅读次数:
239
Dynamic RankingsTime Limit:10 Seconds Memory Limit:32768 KBThe Company Dynamic Rankings has developed a new kind of computer that is no longer satisfi...
分类:
其他好文 时间:
2014-11-24 22:27:40
阅读次数:
416
参考http://blog.csdn.net/lee576/article/details/2050991对于在VS里面智能感知JS,需要对JS函数或者对象进行XML标记如下,请自己体会1 function (company) {2 /// 3 /// 获取所...
分类:
Web程序 时间:
2014-11-24 15:16:00
阅读次数:
151
Rick: The Board of Directors has come to a decision. Our company will take an image hit, and it's going to be very expensive, but it seems we have no ...
分类:
其他好文 时间:
2014-11-22 11:57:56
阅读次数:
270
Pearls
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 7465
Accepted: 3695
Description
In Pearlania everybody is fond of pearls. One company, called The Ro...
分类:
其他好文 时间:
2014-11-20 00:04:23
阅读次数:
224
./当前目录/网站主目录../上层目录~/网站虚拟目录如果当前的网站目录为E:\wwwroot应用程序虚拟目录为E:\wwwroot\company浏览的页面路径为E:\wwwroot\company\news\show.asp在show.asp页面中使用Server.MapPath("./")返回...
分类:
移动开发 时间:
2014-11-19 17:53:23
阅读次数:
125