This project is a solution of the Google Hashcode 2017 online qualification round
The input folder is the folder where to put each *.in files.
The solutions are generated in the ouput folder with the same name as *.in file but with *.out extension.
You got 4 big functions:
import_input
in input.py which reads from the input file and put in variables (stored in V class)solve
in solution.py which is (at the moment) a very bad solverexport_output
in output.py which exports the results in .out filesrank
in ranking.py which returns the score of the given output
You can run:
./install.sh
to install everything needed in the project (only python3 here but you can add external libraries here)./launch.sh
to execute themain()
function and to compress *.py files into a ouputs/source_code.tar.gz to send the source code to the judge system