码迷,mamicode.com
首页 >  
搜索关键字:max    ( 23629个结果
hdu_1003_Max Sum
Max SumTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 142281Accepted Submission(s): 33104 Proble...
分类:其他好文   时间:2014-07-26 01:13:16    阅读次数:270
hdu 1244 Max Sum Plus Plus Plus
http://acm.hdu.edu.cn/showproblem.php?pid=1244状态转移方程:dp[i][j]=max(dp[i][j-1],dp[i-1][j-a[i]]+sum[j]-sum[j-a[i]]);dp[i][j]为第i段第j个数。 1 #include 2 #incl....
分类:其他好文   时间:2014-07-26 01:10:36    阅读次数:287
HBase 性能优化笔记
1 hbase.hregion.max.filesize应该设置多少合适2 autoflush=false的影响3 从性能的角度谈table中family和qualifier的设置4 hbase.regionserver.handler.count详解1 hbase.hregion.max.file...
分类:其他好文   时间:2014-07-26 01:08:36    阅读次数:194
SQL Server 中VARCHAR(MAX)变量赋值引起的性能问题。
案例环境: 操作系统版本 : Windows Server 2008 R2 Standard SP1 数据库版本 : Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64) 案例介绍: 由于不能将生产环境的代码和数据贴上来,所以我构造了下面一个小案例,...
分类:数据库   时间:2014-07-26 00:35:06    阅读次数:419
POJ 2398
#include #include #include #include using namespace std;const int Max=1050;struct e{ int x1,x2;}edge[Max];struct c{ int x,y;}cal[4];int n,m;int X1,Y1,...
分类:其他好文   时间:2014-07-26 00:07:26    阅读次数:260
mysql插入blob大文件
1,E:\MySQL\MySQL Server 5.7\my.ini max_allowed_packet=40M2,MySQL的四种BLOB类型 类型 大小(单位:字节) TinyBlob 最大 255 Blob 最大 65K MediumBlob 最大 16M LongBlob 最大 ...
分类:数据库   时间:2014-07-25 19:07:51    阅读次数:298
图片超过DIV宽度自适应
.main_con img{ max-width: 610px; height: auto; cursor: pointer; border: 0px double #cccccc; padding: 2px; zoom: expression( function...
分类:其他好文   时间:2014-07-25 14:27:11    阅读次数:177
hdu 2602 Bone Collector
开始变量竟然输反了#include #include int dp[1002]; struct none { int vo; int value; }a[1002]; int max(int a,int b) {return a>b?a:b;} int main() { int N,V,T,i,j; scanf("%d",&T); while(T--) { sc...
分类:其他好文   时间:2014-07-25 11:28:01    阅读次数:203
POJ1990 MooFest 树状数组(Binary Indexed Tree,BIT)
N头牛排成一列,每头牛的听力是Vi,每头牛的位置Pi,任意两头牛i,j相互交流时两头牛都至少需要发出声音的大小为max(Vi,Vj) * |Pi-Pj|,求这N头牛两两交流总共发出的声音大小是多少。N,V,P都是1-20000的范围。         这题首先对Vi从小到大进行排序,排序过后就可以依次计算i,将所有比Vi小的牛到i之间的距离之和乘以Vi得到Ri,然后累加Ri就是最终结果...
分类:其他好文   时间:2014-07-25 11:27:51    阅读次数:193
POJ - 2418 代码
使用Trie树完成。比STL map 快很多。输出时DFS,用一个字符数组记录当前字符串。走到是字符串的结点就输出。代码如下。#include #include #include #include #include #include using namespace std;const int Max...
分类:其他好文   时间:2014-07-25 10:52:21    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!