传送门 题意:给nnn个A∗BA*BA∗B的矩形,其中每个矩形的四个角被改造成了半径为rrr的四分之一 圆,问这些矩形的凸包周长. 思路:考虑求出圆心的凸包周长然后加上一个整圆的周长,证明很简单,略掉. 代码: #include<bits/stdc++.h> #define ri register int using namespace std; const int N=10005; struct pot{ double x,y; friend inline pot operator+(con…
题目链接:HDU 1392 Problem Description There are a lot of trees in an area. A peasant wants to buy a rope to surround all these trees. So at first he must know the minimal required length of the rope. However, he does not know how to calculate it. Can you…
地址:http://poj.org/problem?id=3608 题目: Bridge Across Islands Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11259 Accepted: 3307 Special Judge Description Thousands of thousands years ago there was a small kingdom located in the midd…
地址:http://poj.org/problem?id=1228 题目: Grandpa's Estate Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14326 Accepted: 4004 Description Being the only living descendant of his grandfather, Kamran the Believer inherited all of the grand…
地址:http://poj.org/problem?id=1755 题目: Triathlon Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 6931 Accepted: 1797 Description Triathlon is an athletic contest consisting of three consecutive sections that should be completed as fast…
地址:http://poj.org/problem?id=1279 题目: Art Gallery Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 7329 Accepted: 2938 Description The art galleries of the new and very futuristic building of the Center for Balkan Cooperation have the f…