Пример #1
0
 public Judger()
 {
     sandbox         = new Sandbox();
     problemModel    = new ProblemModel();
     userModel       = new UserModel();
     judgeModel      = new JudgeModel();
     compilerManager = new CompilerManager();
     checker         = new Checker();
     workSpace       = FS.JudgeWorkspace;
     FS.WriteAllBytes(FS.RunEXE, Properties.Resources.run_PCMS2);
     FS.WriteAllBytes(FS.InvokeDLL, Properties.Resources.invoke2_PCMS2);
     FS.WriteAllBytes(FS.CompilerTemplates, Properties.Resources.compilerTemplates);
     FS.CleanAppData();
 }