We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8988d commit e6ac5f0Copy full SHA for e6ac5f0
support/schemas/submissions.cue
@@ -0,0 +1,25 @@
1
+package problemformat
2
+
3
+import "list"
4
5
+#person: =~"^[^<]+(<[^>]+>)?$" // "Alice" or "Bob <bob@com>"
6
7
+#verdict: "AC" | "WA" | "RTE" | "TLE"
8
9
+#testnode_pattern: =~"[a-zA-Z0-9_/\\*]+" // TODO
10
+#Submissions: {
11
+ language?: string
12
+ entrypoint?: string
13
+ author?: #person | [...#person]
14
+ #expectation
15
+ [=~"^(sample|secret|\\*)" & #testnode_pattern]: #expectation
16
+}
17
18
+#expectation: {
19
+ permitted?: [#verdict, ...#verdict] // only these verdicts may appear
20
+ required?: [#verdict, ...#verdict] // at least one of these verdicts must appear
21
+ score?: int | [int, int] & list.IsSorted(list.Ascending)
22
+ use_for_timelmit?: false | "lower" | "upper"
23
24
25
+// Play with me at https://cuelang.org/play/?id=3oy3DL9Hx5X#w=function&i=cue&f=eval&o=cue
0 commit comments