1046 First version which calculates distances directly for every case and will run out of time.
1046
1008
1001 Change source code to a link