示例#1
0
文件: Problem.cs 项目: doowzs/DotOJ
 public ProblemInfoDto(Problem problem, bool attempted, bool solved,
                       ProblemStatistics statistics) : this(problem)
 {
     Attempted           = attempted;
     Solved              = solved;
     TotalContestants    = statistics.TotalContestants;
     AcceptedContestants = statistics.AcceptedContestants;
 }
示例#2
0
文件: Problem.cs 项目: doowzs/DotOJ
 public ProblemViewDto(Problem problem) : base(problem)
 {
     Id              = problem.Id;
     ContestId       = problem.ContestId;
     Type            = problem.Type;
     Title           = problem.Title;
     Description     = problem.Description;
     InputFormat     = problem.InputFormat;
     OutputFormat    = problem.OutputFormat;
     FootNote        = problem.FootNote;
     TimeLimit       = problem.TimeLimit;
     MemoryLimit     = problem.MemoryLimit;
     HasSpecialJudge = problem.HasSpecialJudge;
     HasHacking      = problem.HasHacking;
     SampleCases     = problem.SampleCases;
     Statistics      = null;
 }
示例#3
0
文件: Problem.cs 项目: doowzs/DotOJ
 public ProblemViewDto(Problem problem, ProblemStatistics statistics) : this(problem)
 {
     Statistics = statistics;
 }