|
|
@ -5,8 +5,6 @@ const enums = require('./enums'), |
|
|
|
const util = require('util'); |
|
|
|
const util = require('util'); |
|
|
|
module.exports.judge = async function (judge_state, problem, priority) { |
|
|
|
module.exports.judge = async function (judge_state, problem, priority) { |
|
|
|
let type, param, extraFile = null; |
|
|
|
let type, param, extraFile = null; |
|
|
|
console.log("JudgeState: " + util.inspect(judge_state)); |
|
|
|
|
|
|
|
console.log("Problem: " + util.inspect(judge_state)); |
|
|
|
|
|
|
|
switch (problem.type) { |
|
|
|
switch (problem.type) { |
|
|
|
case 'submit-answer': |
|
|
|
case 'submit-answer': |
|
|
|
type = enums.ProblemType.AnswerSubmission; |
|
|
|
type = enums.ProblemType.AnswerSubmission; |
|
|
|