This is my solution to cruise control using python 3. Can you please help me where exactly my judgement is failed?
T = int(input()) result =  for i in range(T): a = input() a = a.split(" ") destination = int(a) horses = int(a) min = 0 travelled = 0 r = 0 for j in range(horses): b = input() b = b.split(" ") if j ==0: travelled = int(b) min = int(b) elif j > 0 and(int(b)<min): travelled = int(b) min = int(b) if travelled < destination: r = destination-travelled r = r/min r = destination/r s = "Case #"+str(i+1)+": "+"%.6f" % r result.append(s) # f = open("cruise.in","a") for i in result: print(i) # f.write(i) # f.write("\n") -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/9bf7d5fb-c8c1-42ca-80d6-a39d4c12c01f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.