TL;DR Compute score for Hash Code 2018 Qualification Round.
python3 score.py res/a_example.in res/a_example.out
score: 10
python3 score.py res/b_should_be_easy.in res/b_should_be_easy.out --score
score: 176,877 = 169,677 + 7,200 (bonus)
python3 score.py res/e_high_bonus.in res/e_high_bonus.out --score --rides --wait
score: 21,465,945 = 11,588,945 + 9,877,000 (bonus)
wait time: 2,032,526
rides: 10,000 = 9,984 (taken) + 16 (unassigned) 0 (late)
rides: 9,984 (taken) = 9,877 (bonus) + 107 (no bonus)
The following checks are performed on the output file when the --check
option is set
check
- ride ids are correct
- rides are assigned only once
- number of cars
- number of steps in the simulation
python3 score.py res/b_should_be_easy.in res/b_should_be_easy.out --check
INFO:root:checking vehicles
INFO:root:vehicles: OK
INFO:root:checking ride ids
INFO:root:ride ids: OK
score: 176,877
see test_score.py
https://hashcode.withgoogle.com/hashcode_2018.html
Team: MetaModHell
Members (listed alphabetically): Karbok, PicoJr
Score: 46,048,775
Rank: 628th World, 81st France
Input | Score |
---|---|
A-example | 10 |
B-should be easy | 176,877 |
C-no hurry | 13,052,303 |
D-metropolis | 11,353,640 |
E-high bonus | 21,465,945 |