Jakub Tarnawski's submission of Longest Arithmetic Progressions | CodeChef