judge: fix #54 and #55

This commit is contained in:
undefined committed 2021-02-26 18:44:58 +08:00
1 parent 0d52d3fee8
commit 4714d65c3f
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.3.12",
"version": "2.3.13",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -55,7 +55,7 @@ langs:
execute: ${dir}/${name}
cc98:
type: compiler
compile: /usr/bin/g++ -O2 -Wall -std=c++11 -o ${name} foo.cc -lm
compile: /usr/bin/g++ -O2 -Wall -std=c++98 -o ${name} foo.cc -lm
code_file: foo.cc
execute: ${dir}/${name}
cc11:
+1 -1
View File
@@ -8,7 +8,7 @@ import { FormatError } from './error';
const TIME_RE = /^([0-9]+(?:\.[0-9]*)?)([mu]?)s?$/i;
const TIME_UNITS = { '': 1000, m: 1, u: 0.001 };
const MEMORY_RE = /^([0-9]+(?:\.[0-9]*)?)([kmg])b?$/i;
const MEMORY_UNITS = { k: 0.1, m: 1, g: 1024 };
const MEMORY_UNITS = { k: 1 / 1024, m: 1, g: 1024 };
const EMPTY_STR = /^[ \r\n\t]*$/i;
export const cmd = parse;