本篇文章主要介绍了"1179. Extrusion"，主要涉及到1179. Extrusion方面的内容，对于1179. Extrusion感兴趣的同学可以参考一下。
Time Limit: 1 secs, Memory Limit: 32 MB
The Acme Extrusion Company specializes in the production of steel bars with custom-designed cross-sections. The manufacturing process involves cutting a hole in a thick metal plate, the shape of the hole being determined by the customer's specifications.
Molten metal is then forced through the hole to form a long bar. The shape of the hole determines the shape of the cross-section of the resulting bar.
Given a description of a polygonal hole and the volume of molten metal available, determine how long a bar can be formed by this process.
Input consists of one or more data sets consisting of the following information:
An integer, N , indicating the number of vertices making up the polygon. End of input is signaled by any N less than 3.Next are N lines, each containing a pair of floating-point numbers, (xi, yi) , each denoting one vertex
of the polygon. Vertices will be presented in clockwise order (relative to the closest interior point) proceeding around the perimeter of the polygon. The xi and yi values
are in units of meters.The data set is terminated by a floating point value indicating the amount of molten metal available (in cubic meters).
For each data set, the program should produce a single line of output of the form: BAR LENGTH: x where ``x " is the maximum bar length, a floating point number expressed with two digits precision.
BAR LENGTH: 100.00
BAR LENGTH: 318.73
using namespace std;
for (int i = 1; i < mount; ++i)
/* code */
cout<<"BAR LENGTH: "<<fixed<<setprecision(2)<<cube*2/area<<endl;