Spoj solutions In Python
Friday, August 9, 2013
UCV2013I
CODE
import math
while(True):
s=raw_input()
str=s.split(' ')
r=int(str[0])
n=int(str[1])
if(n==0 & r==0):
break;
else:
x=math.pi/2
R=r/math.sin(x/n)
print ("%.2f")%R
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment