HDU-1069-java实现

HDU题目java实现 本人杭电上题目java实现的代码,绝无其他无用的内容,知道的都晓得这是什么 立即下载

Monkey and Banana

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


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


动态规划,一个块有6种可能摆放的方式,按某种顺序给他排好(这里是长),然后用动态规划一个一个往后面dp吧,满足条件的话就给他堆上去。关键就是在于你得看出它这个块的摆放方式可以给他分开来,然后排序,不然的话你块跟块之间没什么关系的话你是没法给他dp的,因为dp是按照顺序下来的,你如果块与块之间都是散乱的顺序是不行的。

import java.util.Arrays; 
import java.util.Comparator;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		// TODO 自动生成的方法存根
     Scanner cin=new Scanner(System.in);
     Comparator cmp=new MyComparator();
     int Casenum=1;
     while(cin.hasNext())
     {   
    	 int N=cin.nextInt();
    	 if(N==0)break;
    	 block blocks[]=new block[6*N+1];
    	 int dp[]=new int[6*N+1];
    	 for(int i=1;i<=N;i++)
    	 {
    		int chang=cin.nextInt();
    		int kuan=cin.nextInt();
    		int gao=cin.nextInt();
    		blocks[i]=new block(chang,kuan,gao);
    		blocks[N+i]=new block(chang,gao,kuan);
    		blocks[2*N+i]=new block(gao,kuan,chang);
    		blocks[3*N+i]=new block(gao,chang,kuan);
    		blocks[4*N+i]=new block(kuan,chang,gao);
    		blocks[5*N+i]=new block(kuan,gao,chang);
    	 }
    	 Arrays.sort(blocks,1,6*N+1,cmp);
    	 for(int i=1;i<=6*N;i++)
    	 {
    		 dp[i]=blocks[i].height;
    	 }
    	 int max=0;
    	 for(int i=1;i<=6*N;i++)
    	 {
    		 for(int k=i-1;k>0;k--)
    		 {
    			 if(blocks[i].length<blocks[k].length&&blocks[i].width<blocks[k].width&&dp[i]<dp[k]+blocks[i].height)
    			 {
    				 dp[i]=dp[k]+blocks[i].height;
    			 }
    		 }
    		 max=Math.max(max, dp[i]);
    	 }
    	 System.out.println("Case "+Casenum+": maximum height = "+max);
    	 Casenum++;
     }
	}

}

class block
{
	int length;
	int width;
	int height;
	block(int a,int b,int c)
	{
		length=a;
		width=b;
		height=c;
	}
	public block() {
		// TODO 自动生成的构造函数存根
	}
}

class MyComparator implements Comparator<block>
{
	public int compare(block b1,block b2)
	{
		return b2.length-b1.length;
	}
}

AI测试实战:用文心一言5分钟生成登录功能测试用例(附Excel模板) 本文详细介绍了如何利用AI工具(如文心一言)在5分钟内高效生成登录功能测试用例,并提供了可直接应用的Excel模板。通过对比传统手工编写与AI生成的效率差异,展示了AI在软件测试领域的巨大优势,包括减少重复劳动、避免边界条件遗漏和提升格式标准化。文章还包含实战技巧、高级应用方案和行业最佳实践,助力测试人员快速提升工作效率。 阅读详情

相关推荐

Agent 团队管理手册:如何设定目标、分配角色与解决冲突

本文从Agent团队的底层逻辑出发,完整讲解了Agent团队管理的三大核心模块:目标设定(分层拆解+对齐校验)、角色分配(能力匹配+最优算法)、冲突处理(分类处理+仲裁投票),并提供了可直接运行的完整代码示例。通过本文的方法,你可以快速搭建一个高效协作的Agent团队,大幅提升复杂任务的完成效率和准确率。Agent团队是未来AI应用的核心形态,现在正是落地的黄金期,建议你从一个小场景开始动手实践,逐步优化自己的Agent团队管理方法论。

AI天才研究院 251

HDU1069(经典dp)

题目大意:科学家为了测试猴子的IQ,在屋顶上悬挂一个香蕉,并给定n种类型的木块,每种类型的木块数量没有限制,但是在堆叠木块的时候,位于下面的木块的长和宽必须严格大于上面木块的长和宽,求堆叠的最高的高度 题目分析:通过简单分析可知这道题是用动态规划来做的,而且这道题可以看作是最长递减子序列的变形,首先,从题目中可知,每个木块有三个常量——长 宽 高,每个木块的放置方法有6种,而题目中给出最多有30种...

Joker的博客 398

Petalinux实战:3种方法调试AXI UART Lite设备(含minicom/screen/直接寄存器操作对比)

本文详细介绍了在Zynq平台上使用Petalinux调试AXI UART Lite设备的三种实用方法:用户空间工具(minicom/screen)、应用层程序(termios配置)和底层寄存器直接操作。文章对比了各方法的优缺点与适用场景,并重点解析了设备树配置、驱动加载等关键环节,帮助开发者快速定位并解决串口通信中的常见问题。

weixin_29190169的博客 439

hdu java大整数gcd_算法竞赛专题解析(20):数论--GCD和LCM

本系列文章将于2021年整理出版。前驱教材:《算法竞赛入门到进阶》 清华大学出版社网购:京东 当当   作者签名书:点我公众号同步:算法专辑暑假福利:胡说三国有建议请加QQ 群:567554289目录最大公约数1. GCD定义整数a和b的最大公因数是指能同时整除a和b的最大整数,记为gcd(a, b)。例如:gcd(15, 81) = 3,gcd(0, 44) = 44,gcd(0, 0) = 0...

weixin_32516005的博客 513

Windows 下安装 ros2 的超详细教程

Windows11 ROS安装

2401_83363439的博客 3344

保姆级教程:用Wokwi玩转ESP32 MicroPython仿真(含库文件配置指南)

本教程详细介绍了如何使用Wokwi平台进行ESP32 MicroPython仿真开发,包括库文件配置、传感器数据模拟和REPL调试技巧。通过Wokwi的仿真调试系统,开发者可以在浏览器中快速验证代码逻辑,提高开发效率,特别适合物联网项目的快速迭代。

weixin_29195615的博客 484

hdu-1069-Monkey and Banana

#include #include #define max1(a,b) a>b?a:b struct block {     int area;     int x;     int y;     int z; }dp[95]; int dp2[95]; int cmp1(const void *a,const void *b) {     return *(int *)

u011514451的专栏 536

LabVIEW Modbus TCP通信避坑指南:解决连接中断、服务器异常与自动重连问题

本文详细解析了LabVIEW环境下Modbus TCP通信的常见问题,包括连接中断、服务器异常等,并提供了自动重连机制的实现方案。通过优化错误处理、超时参数和资源管理,帮助开发者构建更稳定的工业级Modbus TCP客户端,显著提升通信可靠性。

weixin_42525211的博客 431

[HDU - 1069] Minimum Inversion Number (线段树或树状数组)

链接 http://acm.hdu.edu.cn/showproblem.php?pid=1394 题意 给你一个0到n-1,共n个数的一个排列,现在你要做这样一件事,把序列开头的数字拿到序列尾部,你可以做这件事n-1次,问你在这样做的过程中,序列的逆序数最小为多少,输出整个最小逆序数; 题解 对于一个序列来说,它包含0到n-1的数字,而这个序列的第一个元素a[i]来说,它对于整个序列逆序数的贡...

梧桐 232

YOLO11涨点优化:原创自研 | 魔改Bottleneck,具备多尺度和特征通道融合的结构

可以将C3k2_MSAMCS放在neck,或者backbone和neck同时修改,具体看自己数据集的涨点情况决定

①订阅者答疑群聊服务;②FDE:工业缺陷检测项目;③paper/创新算法指导;④免费提供YOLO创新涨点推荐顾问Skill和AI小怪兽数字分身; 1669

ESP32学习笔记06-UART 的485 通讯模式

通信方式选择UART 控制器支持多种通信模式,使用函数 uart_set_mode() 可以选择模式。选择特定模式后,UART 驱动程序将处理已连接 UART 设备的相应行为。例如,主机开始向 Tx FIFO 缓冲区写入数据时,UART 驱动程序会自动置位 RTS 管脚(逻辑 1);最后一位数据传输完成后,驱动程序就会取消置位 RTS 管脚(逻辑 0)。要使用此模式,软件。

Car12 2485

hdu1069(lis的长方体堆叠模型)

/* translation: 给出n中不同类型的石块,每种类型的石块长宽高都不一样。对于两块石块a,b。只有当a的底面的长宽严格小于b的长宽时, a才能摆放在b的上面。问最多能够将石块叠加到多高。 solution: lis的长方体堆叠模型,dp 这道题很明显使用dp来做,(其实用搜索也可以吧,数据量不是很大)具体做法是先按照长宽或者宽长对各类的长方体进行排列。然后在直接套上lis的模型

林伏案的博客 2017

keras tensorflow 的lstm的新冠疫情感染人数预测 附完整代码数据 可直接运行

keras tensorflow 的lstm的新冠疫情感染人数预测 附完整代码数据 可直接运行

857

HDU1069 Monkey and Banana

HDU1069 Monkey and Banana 题目大意 给定 n 种盒子, 每种盒子无限多个, 需要叠起来, 在上面的盒子的长和宽必须严格小于下面盒子的长和宽, 求最高的高度. 思路 对于每个方块, x, y, z 的全排列共有 6 种可能性, 每种可能性只需要一个方块, 因为方块必须严格小于, 若有两个相同的方块, 则不符合题意. 先将方块按照 x, y 依次进行排序 设 dp[...

afnt38230的博客 186

深度学习工具包 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")

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

HDU1069 Monkey and Banana (DP)

HDU1069 Monkey and Banana (DP) HDU1069 Monkey and Banana DP 题意 思路 AC代码 原题地址:http://acm.hdu.edu.cn/showproblem.php?pid=1069 题意 有n个小块,每个块能摆成6种方案,每个小块提供无数个,下一层的长宽都必须严格大于上一层的长与宽。问最高能够叠多高。 ...

HuiSeKongHuan的博客 393

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

HDU 1069 Monkey and Banana 最长上升子序列模板

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

LZK1997的博客 425

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

HDU1069 Monkey and Banana —— DP

题目链接:http://acm.split.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): 16589A...

alince20008的博客 161

hdu1069

import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; import java.util.Stack; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int g=0; while (sc.hasNext()) { g++;

Loser_LOSERdyh的博客 171

动态规划训练15 [Monkey and Banana HDU - 1069 ]

Monkey and Banana  HDU - 1069  题意大致是将一个长方体通过旋转,使得摞起来的建筑最高。但是必须满足这么一个条件,那就是上面的长方体的底面一定要完全被下一个长方体的底面完全覆盖,并且要有空位,就像楼梯那样。 由于每一个长方体可以任意使用,而实际上,最多只能被用3次,即长方体的3个棱分别为高的情况下。 所以我们就可以针对每一个长方体生成3个不同的体位。然后

SUNSET 312

HDU 1069 Monkey and Banana 最长上升子序列进阶(动态规划)

HDU 1069(动态规划) Monkey and Banana Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description A group of researchers are designing an experiment to test the...

紫芝的博客 798

HDU 1069

Monkey and Banana Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9465 Accepted Submission(s): 4916Problem DescriptionA group of researcher

仰望天空 293

HDU-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): 21314 Accepted Submiss...

Stark_industry 149

[HDU 1069 Monkey and Banana]DP

题目链接  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): 9902    Accepted

chenningGo的博客 371

HDU 1069 Monkey and Banana

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

光明~~~ 2万+

Linux文件系统详解:从基础概念到高级挂载技巧

文件系统是操作系统管理存储设备的核心机制,Linux采用独特的单一目录树结构组织存储资源。从底层原理看,文件系统通过超级块、inode表和目录项等组件实现数据的高效存取。ext4、XFS等主流文件系统类型各有特点,工程师需要根据性能需求、功能特性和兼容性要求进行选择。在实际应用中,通过mount命令和fstab配置可以实现灵活的挂载管理,而bind mount、tmpfs等高级技巧则能满足容器化、内存文件系统等特殊场景需求。文件系统性能优化涉及挂载选项调整、日志模式选择等多个维度,合理的配置可以显著提升数据

aofan9566的博客 322

hdoj1069 Monkey and Banana(Java版)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1069 题目大意:给你n种能翻转的的石头,问你这些石头能叠起来的最大高度,每种石头无限。 因为这题要求上一块石头的x,y要严格小于底下的石头,所以每一种石头的每一种形态只能用一次 每一块石头有6中形态,也就是6种长宽高的全排列方式。将6n块石头的长度进行从小到大的排列 这样相当于在求6n块石头高度的最大...

仰望星空的博客 311
上一篇: HDU-1029 java
下一篇: HDU-1087-Java实现
SoulGuide
博客等级 码龄9年 9粉丝 14原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值