dpeasy http://www.hackerearth.com/problem/algorithm/choosing-the-judges-7/  added