Skip to content

Algorithm of the practice round on google hashcode 2021

Notifications You must be signed in to change notification settings

alorodri/hashcode-practice-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hashcode-practice-2021

Problem statement

View PDF

Team

Our Hashcode team "Nevergoes" is composed by daniuss, jaimuepe and me. We've participated in the 2019 and 2020 editions.

Algorithm

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.

Score

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

Compiler flags

Program can be compiled with these flags:

Flag Usage
_DEBUG Toggles debug
_DEBUGINFO Shows debug messages tagged as INFO
_DEBUGVERBOSE Shows all debug messages

About

Algorithm of the practice round on google hashcode 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages