码迷,mamicode.com
首页 >  
搜索关键字:free square    ( 7430个结果
URAL 1073 Square Country(DP)
题目链接题意 :这个人要投资地,每块地都是正方形并且边长都是整数,他希望他要买的地尽量的少碎块。每买一块地要付的钱是边长的平方,而且会得到一个一份证书,给你一个钱数,让你求出能得到的证书个数。思路 :其实就是求x12+x22+……+Xn2中的最小的n。 1 //1073 2 #include 3 ....
分类:其他好文   时间:2014-06-04 20:21:14    阅读次数:292
Sqrt(x)
Implementint sqrt(int x).Compute and return the square root ofx.classSolution{public:intsqrt(intx){inti=0;intstep=1;while(step>0){while((i+step)>1);}r...
分类:其他好文   时间:2014-06-04 19:54:17    阅读次数:214
Spiral Matrix II
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:其他好文   时间:2014-06-04 19:28:23    阅读次数:220
杭电1078(记忆搜索)
一道记忆搜索题,记忆搜索题就是搜索的形式+DP的思想!题目:FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid locatio...
分类:其他好文   时间:2014-06-03 14:14:28    阅读次数:466
mysql的binlog太多太大占用了空间的解决办法
现象:网站访问越来越慢,最后无法访问了,经过检查发现磁盘满了分析过程及解决方案:通常出现这种问题都应该登录服务器检查磁盘、内存和进程使用的情况,通过top、df –h和free –m来检查,发现磁盘空间满了。再进一步通过du –sh对可以的目录进行检查,发现是mysql的binlog占用空间过大。清...
分类:数据库   时间:2014-06-03 08:20:56    阅读次数:309
内存池设计与实现
转自:内存池设计与实现1. 内存池设计1.1 目的在给定的内存buffer上建立内存管理机制,根据用户需求从该buffer上分配内存或者将已经分配的内存释放回buffer中。1.2 要求尽量减少内存碎片,平均效率高于C语言的malloc和free。1.3 设计思路将buffer分为四部分,第1部分是...
分类:其他好文   时间:2014-05-31 17:49:57    阅读次数:290
linux init->upstart->systemd
http://en.wikipedia.org/wiki/InitinitFrom Wikipedia, the free encyclopediaThis article is about the Unix process. For the pre-Mac OS X extension mecha...
分类:系统相关   时间:2014-05-31 11:09:02    阅读次数:1323
poj 2362 Square
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, ...
分类:其他好文   时间:2014-05-30 21:21:54    阅读次数:284
FTA
FTA - 维基百科,自由的百科全书FTA维基百科,自由的百科全书跳转至: 导航、 搜索FTA可以指:自由贸易协定(Free Trade Agreement)自由贸易区(Free Trade Area)美国联邦交通管理局(Federal Transit Administration)故障树分析法(F...
分类:其他好文   时间:2014-05-29 19:18:04    阅读次数:319
Hash function
Hash functionFrom Wikipedia, the free encyclopediaA hash function that maps names to integers from 0 to 15. There is a collision between keys "John Sm...
分类:其他好文   时间:2014-05-29 15:10:45    阅读次数:864
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!