problem.setCode(this.code);
problem.setAuthor(this.author);
problem.setSource(this.source);
problem.setContest(this.contest);
Limit limit = new Limit();
if (!this.useContestDefault) {
limit.setTimeLimit(Integer.parseInt(this.timeLimit));
limit.setMemoryLimit(Integer.parseInt(this.memoryLimit));
limit.setSubmissionLimit(Integer.parseInt(this.submissionLimit));
limit.setOutputLimit(Integer.parseInt(this.outputLimit));
}
problem.setLimit(limit);
problem.setChecker(this.specialJudge);
problem.setColor(this.color);