|
|
|
@ -457,7 +457,8 @@ app.get('/contest/submission/:id', async (req, res) => {
|
|
|
|
|
const problems_id = await contest.getProblems(); |
|
|
|
|
judge.problem_id = problems_id.indexOf(judge.problem_id) + 1; |
|
|
|
|
judge.problem.title = syzoj.utils.removeTitleTag(judge.problem.title); |
|
|
|
|
|
|
|
|
|
displayConfig.showUsage = true; |
|
|
|
|
displayConfig.showDetailResult=true; |
|
|
|
|
if (judge.problem.type !== 'submit-answer') { |
|
|
|
|
judge.codeLength = Buffer.from(judge.code).length; |
|
|
|
|
judge.code = await syzoj.utils.highlight(judge.code, syzoj.languages[judge.language].highlight); |
|
|
|
|