mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
vjudge: handle
This commit is contained in:
1 parent
ce3cdc645c
commit
5fed39c490
2 files changed
+4
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/vjudge",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "Submit problems to remote oj",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
@@ -16,11 +16,13 @@ const VERDICT = {
|
||||
OK: STATUS.STATUS_ACCEPTED,
|
||||
TIME_LIMIT_EXCEEDED: STATUS.STATUS_TIME_LIMIT_EXCEEDED,
|
||||
MEMORY_LIMIT_EXCEEDED: STATUS.STATUS_MEMORY_LIMIT_EXCEEDED,
|
||||
IDLENESS_LIMIT_EXCEEDED: STATUS.STATUS_TIME_LIMIT_EXCEEDED,
|
||||
Accepted: STATUS.STATUS_ACCEPTED,
|
||||
'Wrong answer': STATUS.STATUS_WRONG_ANSWER,
|
||||
'Runtime error': STATUS.STATUS_RUNTIME_ERROR,
|
||||
'Time limit exceeded': STATUS.STATUS_TIME_LIMIT_EXCEEDED,
|
||||
'Memory limit exceeded': STATUS.STATUS_MEMORY_LIMIT_EXCEEDED,
|
||||
'Idleness limit exceeded': STATUS.STATUS_TIME_LIMIT_EXCEEDED,
|
||||
};
|
||||
|
||||
export default class CodeforcesProvider implements IBasicProvider {
|
||||
@@ -219,7 +221,7 @@ export default class CodeforcesProvider implements IBasicProvider {
|
||||
status,
|
||||
time: +body[`timeConsumed#${i}`],
|
||||
memory: +body[`memoryConsumed#${i}`] / 1024,
|
||||
message: body[`checkerStdoutAndStderr#${i}`],
|
||||
message: body[`checkerStdoutAndStderr#${i}`] || body[`verdict#${i}`],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user