全部[总排行] [月排行] [周排行] [日排行]
首先分成一半2^17和2^18,并且把其中一半变成相反数,然后枚举一半二分查找另一半,在找到的位置前后也找找。 这里用到了二级排序,有很多细节要处理,不多说了。 巨坑的一个地方就是,不能用系统的abs,要自己手写,简直坑死。。 #include #include #include #include using namespace std; typedef long long ...
分类:其他好文 时间:2014-05-22 12:01:31 阅读:220
//3、假定有20个  有序   数组,每个数组有500个数字,数字类型32位uint数值,现在需要取出这10000个数字中最大的500个,怎么做? #include using namespace std; struct node { int data; int next; }; node obj[20]; void sift(int k,int m,int ...
分类:其他好文 时间:2014-05-22 10:54:48 阅读:292
zTree实现获取当前选中的第一个节点在同级节点中的序号 1、实现源码 zTree实现基本树 <!-- var setting = { data: { simpleData: { enable: true } } }; var zNodes =[ { id:1, pId:0, name:"湖北...
分类:其他好文 时间:2014-05-22 13:44:10 阅读:253
1.查看linux详细版本信息 file /sbin/init2.下载对应nmon版本http://pkgs.repoforge.org/nmon/3.安装rpm -ivhnmon-14f-1.el5.rf.i386.rpm4.采集数据1)./nmon_x86_rhel52 -s10 -c60-f -m .-s10 每 10 秒采集一次数据 ......
分类:系统相关 时间:2014-05-22 09:36:32 阅读:287
主要内容:对通用搜索引擎的查询推荐技术的方法、评价进行了总结 具体内容: “查询推荐”的不同英文叫法:Query Suggestion、Term Suggestion、Query Recommendation、Query Substitution、Query Rewriting 查询推荐的任务:找出和用户查询相似的query,以便更好地表达用户查询意图,供用户便捷输入...
分类:其他好文 时间:2014-05-22 12:39:21 阅读:251
#import "CHViewController.h" @interface CHViewController () @end @implementation CHViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view,...
分类:其他好文 时间:2014-05-22 12:38:44 阅读:369
#include #define MAX 100 using namespace std; class Sample {      int a[MAX];       int b[MAX];      int n;      friend class Process;    public:          Sample(){n=0;} }; cla...
分类:其他好文 时间:2014-05-20 15:24:05 阅读:345
NYOJ 155 求高精度幂...
分类:其他好文 时间:2014-05-23 07:34:43 阅读:221
NYOJ 655 光棍的yy...
分类:其他好文 时间:2014-05-22 06:31:38 阅读:304
java.lang.ClassCastException: android.content.res.XmlBlock$Parser cannot be cast to android.view.animation.Animation...
分类:移动开发 时间:2014-05-22 09:26:20 阅读:590
1279807279808279809282823
上一页2828230下一页
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!