Codeforces Round #1 C subject ent Berland Circus (Computational ry)

Source: Internet
Author: User
Tags acos

Codeforces Round #1 C subject ent Berland Circus (Computational ry)

The idea of this question can be divided into the following four steps:

1: Calculate the radius of the external shard

2: ask for three round angles.

3: calculate the maximum common approx.

4: The maximum common divisor is the biggest inner angle of the positive polygon. Just calculate the area.

But every step won't ask .... Sad... When I think of step 2, I even think that I should use other methods .. .. The ry is too scum.

The Code is as follows:

#include 
 
  #include 
  
   #include 
   
    #include 
    
     #include #include 
     
      #include 
      #include 
       
        #include 
        
         using namespace std;#define LL __int64#define pi acos(-1.0)const int mod=100000000;const int INF=0x3f3f3f3f;const double eqs=0.01;struct Point{ double x, y;}p[4];bool dmp(double x, double y){ return fabs(x-y)
         
          

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.