import sys from math import asin,tan scan = lambda : sys.stdin.readline() test = int(scan()) for case in range(1,test+1): d,v,u = map(int,scan().split()) if u<=v or u==0 or v==0: print("Case %d: can't determine"%case) else: theta = asin(v/u) u1 = v/tan(theta) t1 = d/u1 t2 = d/u print("Case %d: %.3f"%(case,t1-t2))
21 December 2017
UVA 10773 python solution
Subscribe to:
Post Comments (Atom)
-
Suppose you have 24 and you need to find out all divisors of the number. The normally what we do? We just divide the number from 1 to 24. T...
-
#To make a simple gui follow the instructions. You need to at first install PyQt4 in your system. If you use linux run the code sudo apt-ge...
-
It will be easy to solve the problem if you know about the Nim game. " Nim has been mathematically solved for any number of initial...
No comments:
Post a Comment