Package cn.edu.zju.acm.onlinejudge.bean

Examples of cn.edu.zju.acm.onlinejudge.bean.ExtendedSubmission


   * @param languages  a list of languages
   * @return a new Problem instance
   */
  private ExtendedSubmission newSubmission(
      long id, long problemId, long userId, Language language, JudgeReply reply) {
    ExtendedSubmission submission = new ExtendedSubmission();
    submission.setId(id);
    submission.setUserProfileId(userId);
    submission.setProblemId(problemId);
    submission.setLanguage(language);
    submission.setJudgeReply(reply);
    submission.setContent("contest" + id);
    submission.setTimeConsumption((int) id * 10);
    submission.setMemoryConsumption((int) id * 100);
    submission.setSubmitDate(new Date(id * 10000));
    submission.setJudgeDate(new Date(id * 20000));
    submission.setJudgeComment("comment" + id);
     
    return submission;
 
View Full Code Here

TOP

Related Classes of cn.edu.zju.acm.onlinejudge.bean.ExtendedSubmission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.