当前位置:网站首页>太阳能板最大面积 od js
太阳能板最大面积 od js
2022-07-31 01:18:00 【大鸡腿最好吃】
标题:太阳能板最大面积 | 时间限制:1秒 | 内存限制:32768K | 语言限制:不限
给航天器一侧加装长方形或正方形的太阳能板(图中的红色斜线区域),需要先安装两个支柱(图中的黑色竖条),再在支柱的中间部分固定太阳能板。但航天器不同位置的支柱长度不同,太阳能板的安装面积受限于最短一侧的那根支柱长度。如图:
现提供一组整形数组的支柱高度数据,假设每根支柱间距离相等为1个单位长度,计算如何选择两根支柱可以使太阳能板的面积最大。
输入描述:
10,9,8,7,6,5,4,3,2,1
注:支柱至少有2根,最多10000根,能支持的高度范围1~10^9的整数。柱子的高度是无序的,例子中递减只是巧合。
输出描述:
可以支持的最大太阳能板面积:(10米高支柱和5米高支柱之间)
25
示例1
输入
10,9,8,7,6,5,4,3,2,1
输出
25
备注:
10米高支柱和5米高支柱之间宽度为5,高度取小的支柱高也是5,面积为25。任取其他两
边栏推荐
- 网站频繁出现mysql等数据库连接失败等信息解决办法
- typescript9 - common base types
- ABC 261 F - Sorting Color Balls (reverse pair)
- Unity2D horizontal version game tutorial 4 - item collection and physical materials
- Typescript14 - (type) of the specified parameters and return values alone
- Teach you how to configure Jenkins automated email notifications
- 图像处理工具设计
- ShardingSphere之垂直分库分表实战(五)
- Analyze the capabilities and scenarios of the cloud native message flow system Apache Pulsar
- The client series of the DOM series
猜你喜欢
BOM系列之Navigator对象
typescript14-(单独指定参数和返回值的类型)
【952. Calculate the maximum component size according to the common factor】
typescript10-常用基础类型
DOM系列之动画函数封装
typescript17-函数可选参数
【genius_platform软件平台开发】第七十四讲:window环境下的静态库和动态库的一些使用方法(VC环境)
typescript10-commonly used basic types
xss bypass: prompt(1)
解析云原生消息流系统 Apache Pulsar 能力及场景
随机推荐
MySQL database (basic)
Bert usage and word prediction based on Keras_bert model
Distributed. Idempotency
The level of ShardingSphere depots in actual combat (4)
分布式.分布式锁
DOM系列之 client 系列
typescript15- (specify both parameter and return value types)
MySQL——数据库的查,增,删
typescript14-(单独指定参数和返回值的类型)
Know what DTU is 4GDTU equipment
Unity2D horizontal version game tutorial 4 - item collection and physical materials
权限管理怎么做的?
Installation problem corresponding to tensorflow and GPU version
The sword refers to offer17---print the n digits from 1 to the largest
The Meta Metaverse Division lost 2.8 billion in the second quarter, still want to continue to bet?Metaverse development has yet to see a way out
Rocky/GNU之Zabbix部署(3)
【Demo】ABAP Base64加解密测试
ShardingSphere之公共表实战(七)
ShardingSphere's public table combat (7)
Rocky/GNU之Zabbix部署(1)