Advertisement
a53

Radius

a53
Sep 6th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. #define PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. double n,L;
  10. cin>>n>>L;
  11. long long int r=(long long int)(1.0*L/(2.0*sin(180/n*PI/180))*100);
  12. cout<<fixed<<setprecision(2)<<1.0*r/100;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement