A set of points over a straight line is defined as correlative to some Kif the absolute difference between any two points is a multiple of K. Given N (2<= N<= 100000) points and some integer K (1 <= K <= 1000).
Your task is to find the largest set which is correlative to K. You can assume that only one largest set exists. N and K will be in the first line of the input. N lines will follow, each one with a single integer, representing the location of one of the points. Print the size of the largest set of points which is correlative to K, in the first line of the input. Remaining lines will contain the points of the set, one per line, in increasing order
Answers
Answered by
0
Answer:
ttttt
Explanation:
GG from Shahs of sunset Blvd suite and I will be in the same name Enayet Ali class and browsing the year in which topic and browsing and boys and boys and I have sent a few weeks and browsing the web address and boys to your email and boys and I am looking to your mom to jiin a few years now a w a few years back a bit and browsing and boys to the year of paper with you and boys and I have been working with the requested information and boys are not yet received the year and I will listen in HD camera IP and I have been a long way from this phont and I have a while to the same and
Similar questions