see https://hashcodejudge.withgoogle.com/#/home
Problem statement lives here
Input files given with the problem statement live here
$ cd js
$ node index.js
CMake 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.in
You 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.in
Will use 1000000 shuffle rounds to find the best solution.
- Put your solver implementation in the
cpp/solvers
folders. - Your solver must be convertible to a
Solver
a.k.astd::function<PizzaSolution(const PizzaProblem &, const SolverOptions &)>
(seepizza.hpp
), - Edit
CMakeLists.txt
to add your solver implementation to theSOLVERS
list.