So, below is my code written in python. This code is fairly working in IDE.
But, I tried to upload this code 5 times and each time judgement fails. I am
new to GCJ and don't know exactly where I am making mistake.
T = int(input())
result = []
for i in range(T):
a = input()
a = a.split("
At time t=10.01, the cars are at positions:
A - [40.04,45.04]
B - [49.02,54.02]
C - [45.01,50.01]
D - [54.01,59.01]
Note that the front of A is next to the back of C. They must be in different
lanes, and must stay in those lanes until A fully passed C at time 13..
Note also that the front of
Hi,
The 4th test case in the Cruise Control problem has the following
input:
4
L 4 0
L 2 29
L 1 35
L 1 44
The given solution is:
Case #4: 12
calculating the distance at t=12
4*12=48
2*12+29=53
12+35=47
12+44=56
ordering this distance [47,48,53,56]
The maximum distance beetween nearest triplet