diff --git a/config.template.yaml b/config.template.yaml index e3bfd31..7167ef2 100644 --- a/config.template.yaml +++ b/config.template.yaml @@ -40,7 +40,7 @@ languages: version: v4.1.3 (Node.js v14.15.4) Go: - compile_cmd: /usr/bin/go build -o a.out main.go + compile_cmd: /usr/bin/go build -o a.out -p 1 main.go code_file: main.go run_cmd: ./a.out version: go version go1.15.6 linux/amd64 diff --git a/src/judger.rs b/src/judger.rs index 8c76154..1dc66ff 100644 --- a/src/judger.rs +++ b/src/judger.rs @@ -115,7 +115,11 @@ pub async fn judge( path_to_string(&path.join(STDOUT_FILENAME))?, path_to_string(&path.join(STDERR_FILENAME))?, time_limit, - if language == "Java" { + if language == "Java" + || language == "Go" + || language == "JavaScript" + || language == "TypeScript" + { 1024 * 1024 } else { memory_limit