ACM-计算几何之Wall——poj1113

这道ACM题目要求在平面直角坐标系中,根据城堡多边形的顶点坐标计算其凸包周长,并加上一个圆的周长,圆的半径为输入的第二个数。解题关键是使用求凸包的算法,然后进行四舍五入的精度处理。 %.0lf 用于输出结果时进行四舍五入。
摘要由CSDN通过智能技术生成
Wall

题目:http://poj.org/problem?id=1113

Time Limit: 1000MS Memory Limit: 10000K

Total Submissions: 28586 Accepted: 9556

Description
Once upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greedy, that he would not listen to his Architect's proposals to build a beautiful brick wall with a perfect shape and nice tall towers. Instead, he ordered to build the wall around the whole castle using the least amount of stone and labor, but demanded that the wall should not come closer to the castle than a certain distance. If the King finds that the Architect has used more resources to build the wall than it was absolutely necessary to satisfy those r
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值