mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +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$/,
|
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],
|
id: (a) => +a[4],
|
||||||
subtask: (a) => +a[2],
|
subtask: (a) => +a[2],
|
||||||
preferredScorerType: 'min',
|
preferredScorerType: 'min',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/utils",
|
"name": "@hydrooj/utils",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"description": "hydrooj utils",
|
"description": "hydrooj utils",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
Reference in new issue
Block a user