题目描述有m个盒子,第i个盒子的长尾hi,宽为wi。如果两个盒子i,j满足hi#include#includeusing
namespace std;const int maxn=20001;struct node{ int x,y;}box[maxn];int
a[maxn];bool cm...
分类:
其他好文 时间:
2014-05-20 02:11:24
阅读次数:
251
题目描述Halloween is coming! So xiaoY has to prepare M
candies to treat the neighbor kids.When this horrible night come, There are N
little children ask x...
分类:
其他好文 时间:
2014-05-19 22:40:32
阅读次数:
412
题目描述Given a number sequence whose length is n, you
can delete at most k numbers in the sequence.After that you are asked to answer
the maximum length ...
分类:
其他好文 时间:
2014-05-19 22:21:32
阅读次数:
304
题目描述Given an N*N(N#include#include#includeusing
namespace std;const int maxn=1001;int group[maxn][maxn];bool vis[maxn][maxn];int
dx[4]={0,0,1,-1};int ...
分类:
其他好文 时间:
2014-05-19 09:06:30
阅读次数:
379
题目描述After the hard tasks, It’s the easy time for
Y.G.Tobor and Y.D.I.Isha is a friend of Y.D.I, as he thinks Tobor is smart too,
he give Tobor a probl...
分类:
其他好文 时间:
2014-05-17 15:20:34
阅读次数:
248
题目描述Elenore has a list of strings that she wants to
put in a file. She could just put them all into a file in order, but she wants
to minimize the siz...
分类:
其他好文 时间:
2014-05-17 01:33:55
阅读次数:
257
这是错误程序#include#include#include#include#include#includeusing
namespace std;mapcow;int main(){ //freopen("in.txt","r",stdin); char
str[1000],name[...
分类:
其他好文 时间:
2014-05-17 00:59:53
阅读次数:
266
题目描述因为中国人口众多,公共交通就显得很重要.
在传统城市公共交通系统中,公交车是一种很重要的工具。甚至现在还扮演了一种极其重要的角色。X市的公交系统显得很独特。不像别的城市,该市公交系统是基于两站间的距离来计费的。下表描述了两站之间距离与费用的关系:距离费用0L4没有这种票表1你的邻居是一位出名...
分类:
其他好文 时间:
2014-05-16 05:36:50
阅读次数:
368
转载自:http://www.cnblogs.com/york-hust/archive/2012/11/23/2784534.html一、fork入门知识
一个进程,包括代码、数据和分配给进程的资源。fork()函数通过系统调用创建一个与原来进程几乎完全相同的进程,也就是两个进程可以做完全...
分类:
系统相关 时间:
2014-05-15 22:05:30
阅读次数:
455
题目描述Farmer John wants to set up a telephone line at
his farm. Unfortunately, the phone company is uncooperative, so he needs to pay
for some of the ca...
分类:
其他好文 时间:
2014-05-15 18:03:37
阅读次数:
292