see https://hashcodejudge.withgoogle.com/#/home
Problem statement lives here
Input files given with the problem statement live here
$ cd js
$ node index.jsCMake version 3.0 minimum is required to build.
$ cd cpp
$ mkdir Build
$ cd Build
$ cmake ..
$ make$ cd cpp/Build
$ cat ../../inputs/a_example.in | ./hascode-2020-pizza shuffle$ cd cpp/Build
$ ./hascode-2020-pizza \
shuffle \
../../inputs/a_example.in \
../../inputs/b_small.inYou can customize the maximum number of iterations with the environment
variable PIZZA_MAX_ITERATION. For example:
$ PIZZA_MAX_ITERATION=1000000 ./hascode-2020-pizza shuffle inputs/d_quite_bug.inWill use 1000000 shuffle rounds to find the best solution.
- Put your solver implementation in the
cpp/solversfolders. - Your solver must be convertible to a
Solvera.k.astd::function<PizzaSolution(const PizzaProblem &, const SolverOptions &)>(seepizza.hpp), - Edit
CMakeLists.txtto add your solver implementation to theSOLVERSlist.