Longest Arithmetic Progressions | CodeChef