← All problemsSign in

Help Dcode

A Dcode club member has a list A of M integers. He has to find all integers K > 1 such that all (A[i] % K) will give equal values. Here A[i] means ith element of the list ( 1 <= i <= M). He finds this problem as tough and ask for help from Dcode. But Dcode also fails to solve the problem.Help them in solving. ###Input: - First line will contain $M$, number of integers in the list. - Second line

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start