Some solutions may not be complete.
TLDR: Execute python driver.py ProblemA
to test the solution to ProblemA
against all the test cases.
- (Optional): Source into
venv
sonumpy
andscipy
are accessible. - Copy
template.py
into/solutions
and rename it. - Filename should be one-word.
- Example:
ProblemA.py
- Example:
- This one's important: Write the solution in the
solve()
method insideproblemA.py
. - Make sure the drivers return the result in
ProblemA.py
.
- Fill in the input for test cases
1, 2, ...
by creatingProblemA1.in, ProblemA2.in, ...
insidedata/input
. - Fill in the expected output for test cases
1, 2, ...
by creatingProblemA1.out, ProblemA2.out, ...
insidedata/output
. - To execute all the tests, simply execute
python driver.py ProblemA
in the shell.