You are viewing a single comment's thread. Return to all comments →
with this code you have O(1) complexity and it works
import math t, v1, v2 = map(int, input().split()) for _ in range(int(input())): a = int(input()) rep = math.sqrt(2)*(t-math.sqrt(a))/abs(v2-v1) print (rep)
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Moving Tiles
You are viewing a single comment's thread. Return to all comments →
with this code you have O(1) complexity and it works