文件名称:median2722
介绍说明--下载内容均来自于网络,请自行研究使用
给出一个如图角和多个正方形的边长,要求用正方形对给出的角进行封锁,并且要求如图阴影部分的面积最大。-Here is a geometric problem. You have an angle and some squares in the first quadrant of the plane rectangular coordinates. The vertex of the angle is fixed on the origin O of the coordinates, and both of its radial lines are specified by the input. The sizes of the squares are also specified by the input, and the squares can shift vertically and horizontally. Now your job is to use the squares and the radial lines of the angle to enclose the maximum area, which excludes the area of the squares (see Figure 1). You should note that the edges of the squares must be parallel to the axe
(系统自动生成,下载前可以参看下载内容)
下载文件列表
median2722.cpp