This repository was archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhelp.py
More file actions
106 lines (95 loc) · 4.01 KB
/
help.py
File metadata and controls
106 lines (95 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env python3
import sys
from task_maker.config import Config
from task_maker.printer import StdoutPrinter
def help_colors():
printer = StdoutPrinter()
printer.text("Manual of the colors and abbreviations of task-maker\n")
printer.text("\n")
printer.text("During the execution process of a IOI task there are two\n")
printer.text("main areas with colors: the generation and the evaluation\n")
printer.text("\n")
printer.blue("Generation of IOI task\n")
printer.text(" . ")
printer.text("The generation has not started yet\n")
printer.blue(" g ", bold=True)
printer.text("The generator of inputs is running\n")
printer.text(" G ")
printer.text("The generator of inputs is done, waiting for validation\n")
printer.blue(" v ", bold=True)
printer.text("The validator of inputs is running\n")
printer.text(" V ")
printer.text("The validator of inputs is done, waiting for the solution\n")
printer.blue(" s ", bold=True)
printer.text("The official solution is generating the output file\n")
printer.green(" S ")
printer.text("The generation is finished\n")
printer.red(" F ")
printer.text("The generation has failed\n")
printer.text("\n")
printer.blue("Evaluation of a IOI solution\n")
printer.text(" . ")
printer.text("The evaluation has not started yet\n")
printer.blue(" ◐ ", bold=True)
printer.text("The solution is running\n")
printer.text(" s ")
printer.text("The solution is done, waiting for the checker\n")
printer.text(" ◐ ")
printer.text("The checker is running\n")
printer.text(" X ")
printer.text("The execution was skipped because a dependency failed\n")
printer.green(" A ", bold=True)
printer.text("The solution outcome is accepted\n")
printer.red(" W ", bold=True)
printer.text("The solution outcome is wrong\n")
printer.yellow(" P ", bold=True)
printer.text("The solution outcome is partially correct\n")
printer.red(" R ", bold=True)
printer.text("The solution is killed by runtime error (signal/return)\n")
printer.red(" T ", bold=True)
printer.text("The solution got a time limit exceeded error\n")
printer.red(" M ", bold=True)
printer.text("The solution got a memory limit exceeded error\n")
printer.red(" F ", bold=True)
printer.text("The solution hasn't produced the output files\n")
printer.bold(" I ", bold=True)
printer.text("An error occurred\n")
printer.text("\n")
printer.text("\n")
printer.text("After an evaluation of a Terry task, a grid with a row for\n")
printer.text("each solution is presented. The items in those rows are\n")
printer.text("results of each testcase.\n")
printer.text("\n")
printer.blue("Evaluation of a Terry solution\n")
printer.text(" m ")
printer.text("The output of that testcase is missing\n")
printer.green(" c ", bold=True)
printer.text("The output of that testcase is correct\n")
printer.red(" w ", bold=True)
printer.text("The output of that testcase is wrong\n")
printer.text("\n")
printer.text("\n")
printer.text("The status of the compilation of a statement file depends\n")
printer.text("also on its dependencies.\n")
printer.text("\n")
printer.blue("Statement file\n")
printer.blue(" d ")
printer.text("The dependencies are compiling\n")
printer.text(" D ")
printer.text("The dependencies have been compiled\n")
printer.text(" ◐ ")
printer.text("The statement is compiling\n")
printer.text("\n")
printer.blue("Statement dependencies\n")
printer.text(" . ")
printer.text("The dependency is pending\n")
printer.text(" ◐ ")
printer.text("The dependency is running\n")
printer.green(" ✓ ")
printer.text("The dependency has finished successfully\n")
printer.red(" F ")
printer.text("The dependency has failed\n")
def check_help(config: Config):
if config.help_colors:
help_colors()
sys.exit(0)