Topcoder/SRM_621_DIV1/RadioRange.cpp - something using dyeing method