Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. const long double PI = acos(-1.);
  5.  
  6. int n, r;
  7.  
  8. int main(){
  9.     ios_base::sync_with_stdio(0), cin.tie(0);
  10.     cin >> n >> r;
  11.     cout << fixed << setprecision(12) << r*sin(PI/n)/(1 - sin(PI/n)) << endl;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement