programming contest solutions