public Solution(Problem Problem, ProgrammingLanguage ProgrammingLanguaje, TimeSpan TimeConsumed, decimal MemoryConsumed, int TestCasesSolved, decimal Score, string EnvironmentLocation, bool IsSafe, DateTime PublicationDateTime) { this.TimeConsumed = TimeConsumed; this.MemoryConsumed = MemoryConsumed; this.TestCasesSolved = TestCasesSolved; this.Score = Score; this.EnvironmentLocation = EnvironmentLocation; this.IsSafe = IsSafe; this.Problem = Problem; this.ProgrammingLanguage = ProgrammingLanguage; this.PublicationDateTime = PublicationDateTime; // Default properties this.CreationDateTime = DateTime.Now; }
public void RemoveProblem(Problem problem) { Problems.Remove(problem); }
public Problem AddProblem(Problem problem) { Problems.Add(problem); return problem; }