Exemple #1
0
 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;
 }
Exemple #2
0
 public void RemoveProblem(Problem problem)
 {
     Problems.Remove(problem);
 }
Exemple #3
0
 public Problem AddProblem(Problem problem)
 {
     Problems.Add(problem);
     return problem;
 }