--- /dev/null
+from queue import PriorityQueue
+
+def halfway_length(a,b):
+ return abs(a-b)/2
+
+
+N = int(input())
+
+q = PriorityQueue()
+
+for i in range(N):
+ V = int(input())
+ q.put(V)
+
+prev = q.get()
+prev_length = 1000000000
+smallest_length = None
+while not q.empty():
+ current = q.get()
+ d = halfway_length(current, prev)
+ prev_length += d
+ if smallest_length is None or prev_length < smallest_length:
+ smallest_length = prev_length
+ prev_length = d
+ prev = current
+
+print(smallest_length)
\ No newline at end of file
sys.stdout = self._stdout
-PATH = "2012/"
+PATH = "2018/"
PROBLEM = "S1"
-test_input_path = os.path.join(PATH, f"windows_data/senior/{PROBLEM}/")
+test_input_path = os.path.join(PATH, f"senior/{PROBLEM}/")
test_inputs = []
test_outputs = []
print(f"Test Failed. {round(end - start, 3)}s")
print(f"{test_input = }")
print(f"{test_output = }")
+ print(f"{output = }")
+ print()
print("--------------------------------")
print(f"Tests passed: {correct}/{total}")
\ No newline at end of file