public ProblemInfoDto(Problem problem, bool attempted, bool solved, ProblemStatistics statistics) : this(problem) { Attempted = attempted; Solved = solved; TotalContestants = statistics.TotalContestants; AcceptedContestants = statistics.AcceptedContestants; }
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; }
public ProblemViewDto(Problem problem, ProblemStatistics statistics) : this(problem) { Statistics = statistics; }