mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
utils: add output pattern
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -196,7 +196,10 @@ const SubtaskMatcher: MatchRule[] = [
|
||||
},
|
||||
{
|
||||
regex: /^([^\d]*)([0-9]+)([-_])([0-9]+).in$/,
|
||||
output: [(a) => `${a[1] + a[2]}${a[3]}${a[4]}.out`],
|
||||
output: [
|
||||
(a) => `${a[1] + a[2]}${a[3]}${a[4]}.out`,
|
||||
(a) => `${a[1] + a[2]}${a[3]}${a[4]}.ans`,
|
||||
],
|
||||
id: (a) => +a[4],
|
||||
subtask: (a) => +a[2],
|
||||
preferredScorerType: 'min',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/utils",
|
||||
"version": "1.3.2",
|
||||
"version": "1.3.3",
|
||||
"description": "hydrooj utils",
|
||||
"main": "package.json",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
|
||||
Reference in new issue
Block a user