Advertisement
PlotnikovPhilipp

Untitled

Sep 25th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import math
  3. n=int(input())
  4. if n == 1: print(1)
  5. elif n == 6: print(3)
  6. else:
  7. R= 1/(math.sin(math.pi/n))
  8. if (R-1)>1 :
  9. R=1/(math.sin(math.pi/(n-1)))
  10. print (R+1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement