动态规划 杭电1069

手把手教你用UNI-MOL进行分子性质预测:从3D构象到实战结果 本文提供了使用UNI-MOL进行分子性质预测的完整实战指南。通过详细的环境搭建、3D构象生成、模型加载与微调步骤,手把手教你构建端到端的预测流水线。文章重点解析了如何利用UNI-MOL的3D分子表示学习能力,超越传统2D方法,实现对溶解度、活性等性质的更精准预测,并探讨了结果解读与模型分析方法。 阅读详情

     这道题真是一个纠结,,从上午8点开始一直写到现在,刚ac,,伤不起啊。早上想了好久,才想明白一个木块最多可以放三个,然后就是纠结怎么排序的问题了,,一直想了两个小时,算是想明白了。悲催的是,在NYOJ上ac了,在HDU上却怎么也ac不了,,又仔细想了想,每一个木块都应该分6种情况考虑,刚开始我只考虑了3种,,悲剧,,一天,,,终于A了一道题,没有光头。。。。。。。。。。题目:

Monkey and Banana

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3095    Accepted Submission(s): 1615


Problem Description
A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. If the monkey is clever enough, it shall be able to reach the banana by placing one block on the top another to build a tower and climb up to get its favorite food.

The researchers have n types of blocks, and an unlimited supply of blocks of each type. Each type-i block was a rectangular solid with linear dimensions (xi, yi, zi). A block could be reoriented so that any two of its three dimensions determined the dimensions of the base and the other dimension was the height. 

They want to make sure that the tallest tower possible by stacking blocks can reach the roof. The problem is that, in building a tower, one block could only be placed on top of another block as long as the two base dimensions of the upper block were both strictly smaller than the corresponding base dimensions of the lower block because there has to be some space for the monkey to step on. This meant, for example, that blocks oriented to have equal-sized bases couldn't be stacked. 

Your job is to write a program that determines the height of the tallest tower the monkey can build with a given set of blocks.
 

Input
The input file will contain one or more test cases. The first line of each test case contains an integer n,
representing the number of different blocks in the following data set. The maximum value for n is 30.
Each of the next n lines contains three integers representing the values xi, yi and zi.
Input is terminated by a value of zero (0) for n.
 

Output
For each test case, print one line containing the case number (they are numbered sequentially starting from 1) and the height of the tallest possible tower in the format "Case case: maximum height = height".
 

Sample Input
1 10 20 30 2 6 8 10 5 5 5 7 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 5 31 41 59 26 53 58 97 93 23 84 62 64 33 83 27 0
 

Sample Output
Case 1: maximum height = 40 Case 2: maximum height = 21 Case 3: maximum height = 28 Case 4: maximum height = 342
 

ac代码:

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string.h>
using namespace std;
struct rectangular{
  int length;
  int width;
  int height;
  int area;
}aa[205];
bool cmp1(int a,int b){
  return a>b;
}
bool cmp2(rectangular a,rectangular b){
	return a.area>b.area;
}
int main(){
 //freopen("4.txt","r",stdin);
  int n;
  int count=1;
  while(scanf("%d",&n)&&n){
	int num[3],dp[205];
	for(int i=1;i<=6*n;i+=6){
	  for(int j=0;j<3;++j)
		  scanf("%d",&num[j]);
	  sort(num,num+3,cmp1);
	  aa[i].length=num[0];aa[i].width=num[1];aa[i].height=num[2];aa[i].area=aa[i].length*aa[i].width;
	  aa[i+1].length=num[1];aa[i+1].width=num[2];aa[i+1].height=num[0];aa[i+1].area=aa[i+1].length*aa[i+1].width;
	  aa[i+2].length=num[2];aa[i+2].width=num[0];aa[i+2].height=num[1];aa[i+2].area=aa[i+2].length*aa[i+2].width;
	  aa[i+3].length=num[1];aa[i+3].width=num[0];aa[i+3].height=num[2];aa[i+3].area=aa[i+3].length*aa[i+3].width;
	  aa[i+4].length=num[2];aa[i+4].width=num[1];aa[i+4].height=num[0];aa[i+4].area=aa[i+4].length*aa[i+4].width;
	  aa[i+5].length=num[0];aa[i+5].width=num[2];aa[i+5].height=num[1];aa[i+5].area=aa[i+5].length*aa[i+5].width;
	}
	sort(aa+1,aa+6*n,cmp2);
	for(int i=1;i<=6*n;++i)
		dp[i]=aa[i].height;
	for(int i=2;i<=6*n;++i){
		int xmax=0;
		for(int j=1;j<i;++j){
			if((aa[j].length>aa[i].length&&aa[j].width>aa[i].width)||(aa[j].length>aa[i].width&&aa[j].width>aa[i].length))
			if(dp[j]>xmax)
				xmax=dp[j];
		}
		dp[i]=xmax+aa[i].height;
	}
	int ymax=0;
	for(int i=1;i<=6*n;++i)
		if(dp[i]>ymax)
			ymax=dp[i];
	printf("Case %d: maximum height = %d\n",count++,ymax);
  }
  return 0;
}


Linux加密框架中的算法和算法模式(1)——算法介绍 算法和算法模式 阅读详情

相关推荐

突发环境事件怎么模拟?用Python+GIS实现高斯烟团模型(附完整代码)

本文详细介绍了如何利用Python与GIS技术实现高斯烟团模型,用于模拟化工泄漏等突发环境事件的动态扩散过程。通过核心原理讲解、参数快速获取方案、Python代码实现及GIS可视化集成,为环境应急人员提供了一套完整的解决方案。特别适合危险品运输事故等瞬态污染场景的应急决策支持。

weixin_33692284的博客 489

杭电ACM 1069Monkey and Banana

Monkey and Banana Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 13827    Accepted Submission(s): 7274 Problem Description A group of

shellhard的博客 924

【网络图】:附Origin详细画图教程

网络图,是一种由节点(或顶点)和连接这些节点的边(或链路)组成的图形结构。在网络图中,节点通常代表系统中的一个实体(如项目中的一项任务、通信网络中的一个设备、或运输网络中的一个站点),而边则代表这些实体之间的直接联系或流动(如任务的先后顺序、数据的传输路径、或乘客的旅行路线)。 有向图:如果边具有方向性,即从一个节点指向另一个节点,则称为有向图。这种图常用于表示具有明确先后顺序或方向性的系统,如项目管理中的任务依赖关系。 无向图:如果图中的边没有方向,则称为无向图。它适用于表示实体间相互关联但无明确方向性的

weixin_50236590的博客 3958

杭电1069 Monkey and Banana

题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1069 一开始看到这题我想不到什么思路,后来翻《算法竞赛入门经典》时发现它是第九章第二节的例题9-2巴比伦塔 书上提供了两点解题的点: 1.用有向无环图DAG的模型,其模板代码为: int dp(int i) { int& ans = d[i]; if (ans >

aaaliaosha的博客 297

【Unity3D优化】优化内置shader的内存占用

在打AB包的过程中,并不会把这些Built-in的shader单独打包,并与材质球和预设体做好依赖,因此打AB包时,Unity会自行在材质球和预制体的AB包内每一个都包含进去用到的Built-in的Shader,而且运行时,由于加载的是不同的AB包,shader也是不同的实例,占用的也是多份内存。结合项目特点可以分析,由于项目里使用了大量的粒子特效,一些特殊的效果,会给特效师写定制的shader,但是这些常见的效果,特效师直接使用了Unity Built-in的shader。继续优化内存占用。

a310989583的专栏 2318

3步搞定专利数据爬取:用Selenium绕过国家知识产权局反爬(附完整代码)

本文详细介绍了3种高效获取专利数据的技术方案,重点解析了使用Selenium绕过国家知识产权局反爬的实战方法,并提供了完整代码示例。文章还探讨了Requests+lxml轻量级方案和混合技术策略,帮助开发者根据需求选择最佳数据爬取方案,特别适合需要专利统计数据的开发者参考。

weixin_29029995的博客 1119

杭电 1069 Monkey and Banana

http://acm.hdu.edu.cn/showproblem.php?pid=1069 Monkey and Banana Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7397    Accepted Submissi

u012766950的专栏 1421

Calibre PEX提参实战:如何用hcell和xcell文件精准屏蔽模块(附避坑指南)

本文深入解析Calibre PEX工具中hcell与xcell文件的协同工作机制,提供模块级寄生参数提取方案。通过实战案例和避坑指南,帮助工程师精准屏蔽已验证IP模块,提升仿真效率和数据一致性,适用于65nm以下工艺节点的复杂SoC设计。

weixin_29275257的博客 634

杭电ACM1069——Monkey and Banana~~动态规划

题目的意思是:给你N个长方体的长a宽b高c,每一个型号的长方体可以用无限多个。用这些长方体来堆一个高度最高的塔,每一个长方体的长宽大于上面一个长方体的长宽。 一开始是这么想的,一个长方体有3个不同的面,算出3个不同的面的面积,将面积排序,依次取高度相加,不过这样有一个问题就是不能知道长方体的长宽是否大于上面一个长方体的长宽。然后就在结构体中加了两个变量,分别是长宽。再加上长宽的判断,勉强接近了正

XD 1887

【纯干货分享】常用高速接口眼图模板合集

文章汇集了常见的高速接口的信号眼图测试模板技术要求,比如,LPDDR5/4、PCIe 5.0/4.0、USB、MIPI等等,方便工程师快速进行查询和使用。

一只豌豆象的博客 3127

AI Agent开发第85课-DeepSeek-OCR 安装全指南:从 Transformers 到 vLLM,手把手教你跑通企业级 OCR

本文系统讲解 DeepSeek-OCR 的两种部署方式——基于 Hugging Face Transformers 的标准推理与基于 vLLM 的高性能加速推理。详细说明 CUDA 与 PyTorch 版本匹配、环境验证、依赖安装等关键细节,并提供可直接运行的完整代码示例。无论你是单卡调试还是高并发服务部署,都能在这里找到清晰路径。

打造全国最全的AI Agent开发知识领域的博客 2548

杭电1069

这题只做到排序,后面的变量,如全局变量的值还没做完。因为本题需要用到动态规划,还没进行进一步的学习。暂置。 #include&lt;stdio.h&gt; struct block { int length; int width; int height; }; int main() { int n; int count=0; while(scanf("%d",&amp;n)!=EOF&amp;&a...

weixin_43771250的博客 256

数据仓库数据质量监控和处理方法最佳实践

指的是检查数据是否存在反常或者错误的情况,例如数值反常地过大或者过小,或者超过记录的波动值,对应的规则包括数值波动检查,最大值、最小值检查,跨表准确性等。指的是检查数据是否存在缺失的情况,这里的缺失可以是整个数据集的记录缺失,也可以是某个字段记录的缺失,对应的规则包括空值检查,表总行数检查。指的是检查数据是否符合规范,是否按照规定的格式存储,对应的规则包括正则表达式检查,字段长度检查,枚举集合检查,数值范围等。指的是检查哪些数据是重复数据或者数据的哪些属性是重复的,对应的规则例如主键唯一性检查。

大模型大数据攻城狮的专栏 905

杭电OJ1069java实现

杭电1069题目链接 思路:建立类包含高,长,宽。(长的为长,在构造函数中默认比较),面积(也可以不需要直接长长,宽宽比较),按照面积从小到大排序(如果没有面积按照长)。dp[i]表示以第i个为截至的最大高度dp[i]=dp[j] kuai[i].heght.(j表示小于i的最大高度那个),没输入三个数默认增加三个数据。类似最长子序列的dp; 代码如下: import java.util.S...

bigsai 2623

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

杭电OJ——1069 Monkey and Banana(动态规划!)

Monkey and Banana Problem Description A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time,

李树花开,风中摇曳 5354

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

纪录动态规划(浙大1108FatMouse's Speed,杭电1069Monkey and Banana)解题报告

这一类型的题目很多,就是对一个二维数组进行动态规划,但题目所要求得符合要求的最长串一般都是可以不按输入的顺序来的,所以在进行动态规划之前要根据题目要求对数组进行排序。。。。题目大意为,一个二维数组,每次输入w,s,要求W[m[1]] andS[m[1]] > S[m[2]] > ... > S[m[n]]输出最长串的长度和串中元素数组下标。因为要求原来输入数组的下标,所以本

900

hdu 1069 dp

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1069 #include #include #include #include #include #define INF 99999999 #define maxn 205 #define LL long long using namespace std; struct node { int l,w

wwwlps的博客 205

UVA—437 (DAG最长路算法)The Tower of Babylon

原题链接: UVA-437 测试样例 Sample Input 1 10 20 30 2 6 8 10 5 5 5 7 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 5 31 41 59 26 53 58 97 93 23 84 62 64 33 83 27 0 Sample Output Case 1: maximum height = 40 Case 2: maximum height = 21 Case 3: maximum height = 28 Case

pursuit的博客 553

hdu dp60题

准备顺序推掉杭电dp60题不管怎样立个flag23333啊喂不管怎样第一题都没有吗2333那就杭电dp59题好了2333 2017-09-04 : hdu 1011 Starship Troopers 树形dp 2017-09-06 : hdu 1024 Max Sum Plus Plus 最大m个子序列 2017-09-07 : hdu 1025 Constr

nktif 570

杭电ACM_算法题-动态规划

动态规划 50题 题号 hdu--http://acm.hdu.edu.cn pku--http://poj.org 一 hdu2182 Frog hdu2185 Chess ==pku2626 hdu1114(pku1384) Piggy-Bank hdu3281 balls hdu1502 Regular Words 二 hdu1003 Max Sum p61 hdu10

ecjtu_acm_菜鸟—鱼尾尾 1641

杭电动态规划习题

Robberies http://acm.hdu.edu.cn/showproblem.php?pid=2955 背包;第一次做的时候把概率当做背包(放大100000倍化为整数):在此范围内最多能抢多少钱 最脑残的是把总的概率以为是抢N家银行的概率之和… 把状态转移方程写成了f[j]=max{f[j],f[j-q[i].v]+q[i].money}(f[j]表示在概率j之下能抢的大洋);正确的方程

qishibo1990的专栏 1949

杭电oj2104c语言答案,杭电OJ刷题指南(ACM)

除了杭电OJ,还有北大OJ,华科OJ等。1.首先,打开百度,输入“杭电OJ”进行搜索2.然后进入杭电OJ官网,进行注册3.输入注册信息4.接下来进入详细注册界面,将信息填写完整后点击Submit5.接下来即可登录帐号,填写用户名和密码后 点击Sign in6.接下来,进入刷题界面7.英文题自行翻译,从11页开始有中文题,无论中英完成后都计入刷题数8.做题时一定要仔细看题,积极尝试9. 选择答题语言...

weixin_34280781的博客 1129

杭电OJ 1069(C++)

每个方块都有3种不同的放置方法,将3种放置方法都存储在数组中,变为底面确定的3个方块。 将所有方块按照最大底面边长从大到小排序,使用动态规划算法,计算最大高度。 #include <iostream> #include <algorithm> using namespace std; struct node //方块 { int x; int y; int z...

Intelligence1028的博客 457

动态规划题集1

杭电2955题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2955 题目大意是:一个抢银行的人,想在尽可能低的被抓概率内偷到更多的钱。 输入: 第一行:p和num,分别表示可忍受的被抓概率和银行的个数。 接下来num行,每行有w和v,分别表示该银行的钱数和被抓概率 输出: 在被抓概率小于p的情况下,最大的抢的金额数。思路:动态规划,类似于

IBelieve2016的博客 655

杭电acm刷题顺序Java_杭电ACM刷题顺序

第一阶段:开始入门吧!(15天,53题)输入输出练习(2天,10题)1000、1089—1096、1001简单操作:(2—4天,12题)2000—2011、2039英文题试水(3—4天,8题)1720、1062、2104、1064、2734、1170、1197、2629回归水题(4-6天,24题)2012—2030、2032、2040、2042、2054、2055第二阶段:我要学算法!(12天,3...

weixin_35304361的博客 783

杭电1069-Monkey and Banana

Monkey and Banana Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5841    Accepted Submission(s): 2966 Problem Description A group of

ecjtu_acm_菜鸟—鱼尾尾 1462
上一篇: DP 杭电2084
下一篇: 动态规划 杭电4001 大连赛区网络赛水题
wmn_wmn
博客等级 码龄15年 301粉丝 413原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值