首页 > TAG信息列表 > rods

最高的广告牌

链接 你正在安装一个广告牌,并希望它高度最大。这块广告牌将有两个钢制支架,两边各一个。每个钢支架的高度必须相等。 你有一堆可以焊接在一起的钢筋 rods。举个例子,如果钢筋的长度为 1、2 和 3,则可以将它们焊接在一起形成长度为 6 的支架。 返回广告牌的最大可能安装高度。如果没法

POJ 1905 Expanding Rods(实数二分)

题目链接:点击这里 一看就是实数二分的题 正常情况下我们需要讨论加热后的长度与h的单调性,函数过于复杂,但根据常识可判断出:h越大,加热后的长度越长,因此,考虑二分法。 #include<iostream> #include<algorithm> #include<string> #include<cstdio> #include<cstring> #include

# Expanding Rods//POJ - 1905//二分

Expanding Rods//POJ - 1905//二分 题目 When a thin rod of length L is heated n degrees, it expands to a new length L’=(1+n*C)*L, where C is the coefficient of heat expansion. When a thin rod is mounted on two solid walls and then heated, it expands and