Problem E
Space Elevator
China is building a space elevator, which will allow the launching probes and satellites to a much
lower cost, enabling not only scienti?c research projects but also space ...
分类:
其他好文 时间:
2015-08-14 19:13:26
阅读次数:
112
#include
#define N 100
int aa[N];
int main()
{
int a,b,i;
while(scanf("%d",&a)&&a){
b=0;
for(i=0;i<a;i++)
scanf("%d",&aa[i]);
b+=5+6*aa[0];
f...
分类:
其他好文 时间:
2015-08-10 20:07:48
阅读次数:
99
方法同POJ1014-Dividing,唯一不同点在于每一种block有最大限定高度a,故要以a为关键字进行排序,使得最大高度小的在前,否则最大高度小的再后可能放不上去。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using.....
分类:
其他好文 时间:
2015-06-28 20:04:30
阅读次数:
105
Dormitory's Elevator
Accepted : 52
Submit : 332
Time Limit : 1000 MS
Memory Limit : 65536 KB
Problem Description
The new dormitory has N(1≤N≤100000) floors an...
分类:
其他好文 时间:
2015-05-23 16:54:44
阅读次数:
131
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh...
分类:
其他好文 时间:
2015-05-12 01:33:52
阅读次数:
91
背包九讲里面的多重背包问题。每一块积木有高度和数量,也有最大能到的高度位置限制。我们DP前首先要对高度限制进行排序,因为从直观角度说,我们也需要先处理较小的能到高度的积木,这样才能取到最大值。例如第一个高度是11,限制高度是100,第二个的限制高度是10,那如果直接处理,第二个不会被处理到。
#include
#include
#include
#define max(x,y)(x>y?x:y...
分类:
其他好文 时间:
2015-05-08 10:59:02
阅读次数:
211
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 50649 Accepted Submission(s): 27934
Problem Description
The highest building in our...
分类:
其他好文 时间:
2015-05-06 15:10:09
阅读次数:
103
Elevator
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 50645 Accepted Submission(s): 27932
Problem Description
The highest bui...
分类:
编程语言 时间:
2015-05-06 13:16:42
阅读次数:
313
Problem Description
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified ...
分类:
其他好文 时间:
2015-04-24 12:37:35
阅读次数:
123
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5230
题面:
Elevator
Time Limit: 2 Seconds Memory Limit: 65536 KB
How time flies! The graduation of this year is aroun...
分类:
其他好文 时间:
2015-04-11 09:03:02
阅读次数:
117