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)
-
/*** Md. Nazmul Hasan Shahjalal University of Science & Technology,Sylhet. hasan08sust@gmail.com ***/ #include<iostream> #i...
-
n = 1 while n: str = input () # print('Case no# %d :'%n) if str == ' * ' : break if str == ' Hajj ...
-
/*** Md. Namzul Hasan Shahjalal University of Science & technology,sylhet. hasan08sust@gmail.com ***/ #include<bits/stdc++.h...
No comments:
Post a Comment