import sys sys.setrecursionlimit(1000000000) # # Solution Template for Off the Track # # Australian Informatics Olympiad 2025 # # This file is provided to assist with reading of input and writing of output # for the problem. You may modify this file however you wish, or # you may choose not to use this file at all. # # N is the number of students. N = 0 # L is the length of the track. L = 0 # P contains the locations of the students. Note that the list starts from 0, # and so the values are P[0] to P[N-1]. P = [] # Read the values of N, L, and the student locations. N, L = map(int, input().strip().split()) P = list(map(int, input().strip().split())) # TODO: This is where you should compute your solution. Store the fewest number # of seconds you need to end the game into the variable answer. answer = 0 # Write the answer. print(answer)