码迷,mamicode.com
首页 > 其他好文
Codeforces 12D Ball 树状数组模拟3个元素的排序
题目链接:点击打开链接 #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define N 500005 #define ll int ll n; ll c[N], maxn; inline ll...
分类:其他好文   时间:2014-06-27 09:06:04    阅读次数:183
MR之SequenceFile详解
package com.leaf.hadoop.second; import java.util.Random; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hado...
分类:其他好文   时间:2014-06-27 10:00:17    阅读次数:294
CodeForces 7D Palindrome Degree 字符串hash
题目链接:点击打开链接 #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define N 5001000 #define mod 1000000007 #define he...
分类:其他好文   时间:2014-06-27 07:35:50    阅读次数:178
小虾米的鳄鱼梦
去年写的一篇文章。今天翻出来了。现在想想也真辛苦。          我来自江西省一个美丽的淡水湖鄱阳湖,一个很美的地方。在一个普通的家庭成长着,虽然没有富裕的生活,但是从小父母就教育我和妹妹,知识能够改变命运。稚嫩的我不能理解这么意义深刻的话语,唯一能够做的就是好好学习,天天向上,考个好成绩。同时父亲少年时候的自学成才的故事,一次又一次的深深的激励了我。我相信我也能成为我父亲那样的人。成长的岁...
分类:其他好文   时间:2014-06-27 10:14:03    阅读次数:284
hdu2844 Coins 多重背包
#include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll __int64 using namespace std; int n,m,dp[100010],a[100010],c[1010]; void pack01(int c...
分类:其他好文   时间:2014-06-27 08:07:53    阅读次数:157
hdu2159 Fate 二维背包
#include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll __int64 using namespace std; int n,v,k,s,dp[110][110],w[110],c[110]; int main() {...
分类:其他好文   时间:2014-06-27 08:15:44    阅读次数:171
OpenCV —— 轮廓
把检测出的边缘像素组装成轮廓 —— cvFindContours OpenCV 使用内存存储器来统一管理各种动态对象的内存。内存存储器在底层被实现为一个有许多相同大小的内存块组成的双向链表 内存储器可以通过四个函数访问 : cvCreateMemStorage(创建一个内存存储器,0采用默认大小) ...
分类:其他好文   时间:2014-06-27 10:58:12    阅读次数:465
Tomcat6 一些调优设置内存和连接数
公司的一个服务器使用Tomcat6默认配置,在后台一阵全点击服务器就报废了,查了一下就要是PERMSIZE默认值过小造成(16-64)TOMCAT_HOME/bin/catalina.sh添加一行:JAVA_OPTS=" -XX:PermSize=64M -XX:MaxPermSize=128m"问...
分类:其他好文   时间:2014-06-27 10:57:38    阅读次数:211
[再寄小读者之数学篇](2014-06-23 Bernstein's inequality)
$$\bex \supp \hat u\subset \sed{2^{j-2}\leq |\xi|\leq 2^j} \ra \cfrac{1}{C}2^{jk}\sen{f}_{L^p} \leq \sen{D^k f}_{L^p}\leq C2^{jk} \sen{f}_{L^p}; \eex$...
分类:其他好文   时间:2014-06-27 10:57:00    阅读次数:201
[反汇编练习] 160个CrackMe之019
[反汇编练习] 160个CrackMe之018. 本系列文章的目的是从一个没有任何经验的新手的角度(其实就是我自己),一步步尝试将160个CrackMe全部破解,如果可以,通过任何方式写出一个类似于注册机的东西。 其中,文章中按照如下逻辑编排(解决如下问题): 1、使用什么环境和工具 2、程序分析 ...
分类:其他好文   时间:2014-06-27 10:58:53    阅读次数:417
STL对比解说——关联容器
STL对比解说——关联容器1. 概述 关联容器会根据某种准则自动排序容器中元素。operator namespace std { template , //默认使用小于,可以自己提供排序准则 typename Allocator = allocator > ...
分类:其他好文   时间:2014-06-27 11:00:22    阅读次数:235
enum使用整理
枚举类型是JDK5.0的新特征。Sun引进了一个全新的关键字enum来定义一个枚举类。下面就是一个典型枚举类型的定义:public enum Color{ RED,BLUE,BLACK,YELLOW,GREEN } 显然,enum很像特殊的class,实际上enum声明定义的类型就是一个类。...
分类:其他好文   时间:2014-06-27 10:59:37    阅读次数:257
《cocos2d-x游戏开发》—— lua学习总结(一)数组的使用
在lua中,数组是用table来实现的。1、数组的定义:self.itemArrays = {}; --作为数组来使用的表itemArrays2、 数组插入一条数据:local showItemSprite = CCSprite:create(); --创建一个精灵对象showItemSpri...
分类:其他好文   时间:2014-06-27 11:01:03    阅读次数:202
[再寄小读者之数学篇](2014-06-23 向量公式)
$$\bex \n\times({\bf a}\times{\bf b})=({\bf b}\cdot\n){\bf a} -({\bf a}\cdot\n){\bf b}+{\bf a}(\n\cdot{\bf b})-{\bf b}(\n\cdot{\bf a}). \eex$$ see [李大...
分类:其他好文   时间:2014-06-27 11:02:24    阅读次数:198
??怎样写具体设计文档
怎样写具体设计文档是一个非常头疼的话题,简单的说是需求文档的升华,也能够说是开发者开发程序的根据,当然根据具体设计文档的粒度进行。好的具体设计文档是需求人员和开发者之间的桥梁,只是眼下好多程序开发都是先开发后,然后为了应付审核,公司制度,文档规范,开发完毕后兴许补上该文档。假设这种方式,具体设计文档...
分类:其他好文   时间:2014-06-27 11:01:48    阅读次数:148
[再寄小读者之数学篇](2014-06-26 Besov space estimates)
(1) $$\bex \sen{D^k f}_{\dot B^s_{p,q}}\sim \sen{f}_{\dot B^{s+k}_{p,q}}. \eex$$ (2) $$\beex \bea &\quad s>0,\ q\in [1,\infty],\quad p_1,r_1\in [1,\in...
分类:其他好文   时间:2014-06-27 11:03:38    阅读次数:229
Ajax返回值问题思考
Ajax请求,请求之后,我们需要得到返回值,或一个,或多个,然后根据返回值进行下一步的逻辑判断,那么返回值问题上,如果我们只是单一的请求后,返回一个值,那么我们可以直接接收,然后判断处理,比如:success: function (data) { if(data == 什么什么) { ...
分类:其他好文   时间:2014-06-27 11:04:16    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!