prepare for POJ training, save problem description, and save result to
log