Our Hashcode team "Nevergoes" is composed by daniuss, jaimuepe and me. We've participated in the 2019 and 2020 editions.
The code is a bit messy, but i'll try to clean it up a little bit when i have more time. I also want to move the writeOutput function to the fileutils.h.
Initially the algorithm tried to prioritize the deliveries for the 4-people teams, then the 3-people teams, and last the 2-people teams. Then I rewrote the algorithm so it could work with different criteria that can be assigned on the compute method.
File name | Score |
---|---|
a_example | 65 points |
b_a_little_bit_of_everything | 6,235 points |
c_many_ingredients | 686,332,356 points |
d_many_pizzas | 5,853,128 points |
e_many_teams | 6,861,985 points |
Total | 699,053,769 points |
Program can be compiled with these flags:
Flag | Usage |
---|---|
_DEBUG | Toggles debug |
_DEBUGINFO | Shows debug messages tagged as INFO |
_DEBUGVERBOSE | Shows all debug messages |