http://www.spoj.com/problems/MKEQUAL/
Hint :
if sum of all numbers is divisible by n then the ans is n
else
answer is n-1
http://www.spoj.com/problems/MKEQUAL/
Hint :
if sum of all numbers is divisible by n then the ans is n
else
answer is n-1