public function getresult() { $this->s_score += $this->state['score']; if ($this->state['score'] == 0 && $this->wrongpoint == 0) { $this->wrongpoint = $this->nowjudge; $this->inputtext = $this->state['input']; $this->difftext = $this->state['diff']; } if ($this->state['timeout']) { $this->s_detail .= 'T'; return 评测信息a('T'); } else { if ($this->state['memoryout']) { $this->s_detail .= 'M'; return 评测信息a('M'); } else { if ($this->state['runerr']) { $this->s_detail .= 'E'; return 评测信息a('E'); } else { if ($this->state['noreport']) { $this->s_detail .= 'R'; return 评测信息a('R'); } else { if ($this->state['noindata'] || $this->state['noansdata']) { $this->s_detail .= 'D'; return 评测信息a('D'); } else { if ($this->state['score'] == 0) { $this->s_detail .= 'W'; return 评测信息a('W'); } else { if ($this->state['score'] != 1) { $this->s_detail .= 'P'; return 评测信息a('P'); } else { if ($this->state['score'] == 1) { $this->s_detail .= 'A'; $this->ac++; return 评测信息a('A'); } } } } } } } } }
function 评测信息($str) { echo "<span class='judge'>" . 评测信息a($str) . "</span>"; }