Пример #1
0
 public string ToString(CcDataCaseResult result)
 {
     return
         ($"{Id}/{Action}/{ResultDirname,-10} {CourseName}/{CourseYear}/{Problem}/{result.Case} [{result?.Duration:0.000} sec] {ProcessStatus.Get(result?.Status ?? -1).Name}");
 }
Пример #2
0
 public string ToString(string caseId)
 {
     return
         ($"{Id}/{Action}/{ResultDirname,-10} {CourseName}/{CourseYear}/{Problem}/{caseId} [{Result?.Duration:0.000} sec] {ProcessStatus.Get(Result?.Status ?? -1).Name}");
 }
Пример #3
0
 public string ResultDir(string courseDir) =>
 Path.Combine(
     courseDir, CourseYear, "results", ResultDirname, Problem,
     $"{Attempt:D2}-{ProcessStatus.Get(Result.Status).Letter}-{ProcessStatus.Get(Result.Status).Name}"
     );