judge script to compare results and calculate running time