Example #1
0
 public void setStatusResult(Result res, String time, String Memory) {
   result = res;
   TimeUsed = time;
   MemoryUsed = Memory;
   if (cid != -1) {
     Contest c = ContestMain.getContest(cid);
     c.getRank().add(Main.status.getStatu(rid), c); // 通知更新排行榜
   }
 }
Example #2
0
 public int getContestPid() {
   return ContestMain.getContest(cid).getcpid(pid);
 }
Example #3
0
 public Problem getProblem() {
   if (cid == -1) return Main.problems.getProblem(pid);
   else {
     return ContestMain.getContest(cid).getProblem(pid);
   }
 }