예제 #1
0
 public StatusDetail(Entity.JudgeTask judgetask, int index)
 {
     ID          = index;
     MemoryUsage = judgetask.MemoryUsage;
     TimeUsage   = judgetask.TimeUsage;
     Result      = judgetask.ResultAsInt;
     Hint        = Helpers.HtmlFilter.Instance.SanitizeHtml(judgetask.Hint);
 }
예제 #2
0
 public JudgeTask(Entity.JudgeTask jt)
 {
     ID                       = jt.ID;
     Code                     = jt.Status.Code;
     CodeLanguage             = jt.Status.Language;
     DataID                   = jt.TestCaseID;
     SpecialJudgeCode         = jt.Status.Problem.SpecialJudge;
     SpecialJudgeCodeLanguage = jt.Status.Problem.SpecialJudgeLanguage;
     TimeLimit                = jt.Status.Problem.TimeLimit;
     MemoryLimit              = jt.Status.Problem.MemoryLimit;
 }