/// <summary> /// Get color for given verdict /// </summary> /// <param name="ver">Verdict number to get color</param> /// <returns>Color for the given verdict </returns> public static System.Drawing.Color GetVerdictColor(Structures.Verdict ver) { switch (ver) { case Structures.Verdict.SubError: return(System.Drawing.Color.DarkGoldenrod); case Structures.Verdict.CannotBeJudge: return(System.Drawing.Color.DarkGray); case Structures.Verdict.CompileError: return(System.Drawing.Color.Red); case Structures.Verdict.RestrictedFunction: return(System.Drawing.Color.SlateBlue); case Structures.Verdict.RuntimeError: return(System.Drawing.Color.Green); case Structures.Verdict.OutputLimit: return(System.Drawing.Color.Brown); case Structures.Verdict.TimLimit: return(System.Drawing.Color.Teal); case Structures.Verdict.MemoryLimit: return(System.Drawing.Color.SlateGray); case Structures.Verdict.WrongAnswer: return(System.Drawing.Color.Maroon); case Structures.Verdict.PresentationError: return(System.Drawing.Color.RoyalBlue); case Structures.Verdict.Accepted: return(System.Drawing.Color.Blue); default: return(System.Drawing.Color.Black); } }
/// <summary> /// Get verdict name form given verdict number /// </summary> /// <param name="ver">Verdict number</param> /// <returns>Verdict name</returns> public static string GetVerdict(Structures.Verdict ver) { switch (ver) { case Structures.Verdict.SubError: return("Submission Error"); case Structures.Verdict.CannotBeJudge: return("Can't Be Judged"); case Structures.Verdict.CompileError: return("Compile Error"); case Structures.Verdict.RestrictedFunction: return("Restricted Function"); case Structures.Verdict.RuntimeError: return("Runtime Error"); case Structures.Verdict.OutputLimit: return("Output Limit Exceeded"); case Structures.Verdict.TimLimit: return("Time Limit Exceeded"); case Structures.Verdict.MemoryLimit: return("Memory Limit Exceeded"); case Structures.Verdict.WrongAnswer: return("Wrong Answer"); case Structures.Verdict.PresentationError: return("Presentation Error"); case Structures.Verdict.Accepted: return("Accepted"); default: return("- In Queue -"); } }