source code for programming contest