This repo contains the 'problem statement', 'input files', 'source code' and corresponding 'output files' of the online qualification round of Google Hash Code 2020.
All the variables have been given some relatable names in accordance with the problem statement file attached in this repo. Please go through it parallely with the source code to avoid confusions and understand the code better.
For reading the input files and generating the corresponding output files, just redirect the input and output files using the command below:
$python hashcode.py < input_file.txt > output_file.txt
Note: You can change the names of these i/o files accordingly. This is merely a sample command. Also, make sure you're working in the right directory.