瀑布流
*{
margin: 0px;
padding:0px;
}
.box{
position: relative;
top:0px;
}
ul li{
list-style-type: none;
position...
分类:
Web程序 时间:
2014-08-01 16:17:01
阅读次数:
294
这题跟 hdu 1734 push box 是一样的,只不过这题推的是一个箱子,另外求的是箱子被推了多少次,那么只要在箱子被推的时候 次数才加1,然后使用优先队列就ok了
写了1734就会觉得这题很水啦 HDU1734题解
网上主流的都是bfs+bfs,或者是bfs+dfs
#include
#include
#include
#include
#include
using nam...
分类:
其他好文 时间:
2014-08-01 10:58:21
阅读次数:
326
Software License
.box { overflow:hidden; width:96%; margin: 0 auto; padding-top: 20px;}
.lan { overflow:hidden; margin-bottom:20px; color:#2f2f2f; background-color:#eee;}
...
分类:
移动开发 时间:
2014-07-31 20:57:17
阅读次数:
332
题意:有n个数,按顺序加入,求加入前Gi个数时第i个最小的数是多少思路:这里需要用到STL里的优先队列priority_queue,建一个大堆和一个小堆,若想在一个无序的序列里找第n个小的数,可以先把一个序列的n-1个数放入大堆(即假设这n-1个数是该序列里最小的),然后向小堆里push数,若小堆....
分类:
其他好文 时间:
2014-07-31 16:41:36
阅读次数:
276
原文译至:https://the-pastry-box-project.net/ed-finkler/2014-july-6
译者:http://blog.csdn.net/robertsong2004/
我总是一个发愁的人,但我曾经是一个年轻的发愁者。现在我不那么年轻。我仍然为一些事情担心。
我觉得作为一个开发者我越来越担心我的未来。
因为我已经变老了,我不熬夜这么晚了。...
分类:
其他好文 时间:
2014-07-30 23:56:35
阅读次数:
315
/*
* javaBean代码
*/
package bean;
public class Box {
double length;
double width;
double height;
public Box()
{
length=0;
width=0;
height=0;
}
public double getLength() {
return lengt...
分类:
编程语言 时间:
2014-07-29 21:57:02
阅读次数:
356
" class="text-box single-line" style="width:108px;" />
分类:
其他好文 时间:
2014-07-29 16:41:41
阅读次数:
127
题目链接题意 : 在一个二维直角坐标系中,有n×n个洞,每个洞的坐标为(x,y),0 ≤x,y 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std ; 9 10 int mapp[30][30][20] ;...
分类:
其他好文 时间:
2014-07-29 10:43:06
阅读次数:
268
题目地址:Black Box题目大意: 有一个黑盒子可以进行两种操作,一种是ADD往盒子里存数,一种是GET查找盒子里的第几个数,默认盒子里始终是从小到大排列,然后A(1)、A(2)....A(M)为要存进盒子的数,u(1)、u(2)、....u(N)的数并不是取出第几个数,而这里u(N)存的数是....
分类:
其他好文 时间:
2014-07-28 23:56:54
阅读次数:
444
Black BoxTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 7183Accepted: 2920DescriptionOur Black Box represents a primitive database. It can s...
分类:
其他好文 时间:
2014-07-28 23:47:34
阅读次数:
250