Cody

Solution 1957922

Submitted on 3 Oct 2019 by Paul Morant
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
coords = [ 48.9803 -103.808 48.98031 -103.808 48.9806 -103.765 48.9806 -103.764 48.9534 -103.743 48.9809 -103.785 48.9822 -103.802 48.2269 -102.295 48.2559 -102.337 48.2556 -102.311 48.2557 -102.36 48.2557 -102.359 48.9818 -103.231 48.8639 -103.507 48.8804 -103.51 48.8648 -103.529 48.7935 -103.401 48.8379 -103.715 48.63282 -103.492268]; dist_correct = [ 0 0.000690976 1.950155232 1.995502612 3.485510848 1.043867842 0.302111766 86.53754762 83.78510566 84.75282145 82.9534702 82.98989215 26.16671135 15.85736704 15.18721355 14.97174021 22.55114901 10.70767068 27.98081693 0.000690976 0 1.950147814 1.995495354 3.485879124 1.043840523 0.301812113 86.53795777 83.78551307 84.75322419 82.95388198 82.99030374 26.16670599 15.85771634 15.18752642 14.97210747 22.55154299 10.70830547 27.98140911 1.950155232 1.950147814 0 0.045349749 2.12797696 0.907229104 1.681552044 84.98895345 82.23092177 83.18867303 81.40875472 81.44476589 24.21656659 14.22106846 13.48832542 13.37289322 20.99166378 10.11831281 27.04659437 1.995502612 1.995495354 0.045349749 0 2.107084218 0.95256744 1.726805519 84.95285272 82.19469683 83.15221287 81.37275326 81.40875472 24.17121793 14.18369356 13.44938704 13.33654253 20.95588696 10.10821786 27.0257419 3.485510848 3.485879124 2.12797696 2.107084218 0 2.690817215 3.335092424 83.06183212 80.30813598 81.2738957 79.47857211 79.5149 23.3078386 12.37415418 11.72088759 11.48623566 19.06975001 8.0814959 24.91872689 1.043867842 1.043840523 0.907229104 0.95256744 2.690817215 0 0.776146592 85.72532328 82.96973548 83.93198388 82.14329292 82.17948968 25.12340423 14.98902476 14.28513822 14.12265973 21.72709198 10.37975791 27.49426357 0.302111766 0.301812113 1.681552044 1.726805519 3.335092424 0.776146592 0 86.39692438 83.64318272 84.6086705 82.81365124 82.8499822 25.89393315 15.69097514 15.00598099 14.81325771 22.40402258 10.72506046 27.95475568 86.53754762 86.53795777 84.98895345 84.95285272 83.06183212 85.72532328 86.39692438 0 2.784056299 2.115378101 3.592699243 3.55447642 67.45150094 70.78812687 71.60197135 71.61685609 63.99904083 77.48346607 61.64286707 83.78510566 83.78551307 82.23092177 82.19469683 80.30813598 82.96973548 83.64318272 2.784056299 0 1.196326277 1.058218953 1.012217459 64.67828567 68.02660818 68.83652677 68.85826762 61.24275477 74.76787565 59.00989918 84.75282145 84.75322419 83.18867303 83.15221287 81.2738957 83.93198388 84.6086705 2.115378101 1.196326277 0 2.254291389 2.20828588 65.45050761 68.97840161 69.77964632 69.81586121 62.20537972 75.78431266 60.09066956 82.9534702 82.95388198 81.40875472 81.37275326 79.47857211 82.14329292 82.81365124 3.592699243 1.058218953 2.254291389 0 0.046005686 64.03108715 67.21123856 68.02924605 68.03734456 60.41790968 73.89077428 58.07210156 82.98989215 82.99030374 81.44476589 81.40875472 79.5149 82.17948968 82.8499822 3.55447642 1.012217459 2.20828588 0.046005686 0 64.05947669 67.24693201 68.06459108 68.07327999 60.45399813 73.92914571 58.11306589 26.16671135 26.16670599 24.21656659 24.17121793 23.3078386 25.12340423 25.89393315 67.45150094 64.67828567 65.45050761 64.03108715 64.05947669 0 14.94634989 14.47399026 15.76107662 15.13093723 24.12471833 26.88548218 15.85736704 15.85771634 14.22106846 14.18369356 12.37415418 14.98902476 15.69097514 70.78812687 68.02660818 68.97840161 67.21123856 67.24693201 14.94634989 0 1.148233919 1.001951244 6.849226939 9.626393279 15.9811711 15.18721355 15.18752642 13.48832542 13.44938704 11.72088759 14.28513822 15.00598099 71.60197135 68.83652677 69.77964632 68.02924605 68.06459108 14.47399026 1.148233919 0 1.381147146 7.786547077 9.771067867 17.1262391 14.97174021 14.97210747 13.37289322 13.33654253 11.48623566 14.12265973 14.81325771 71.61685609 68.85826762 69.81586121 68.03734456 68.07327999 15.76107662 1.001951244 1.381147146 0 7.627064455 8.658757412 16.11638162 22.55114901 22.55154299 20.99166378 20.95588696 19.06975001 21.72709198 22.40402258 63.99904083 61.24275477 62.20537972 60.41790968 60.45399813 15.13093723 6.849226939 7.786547077 7.627064455 0 14.61255215 11.85676168 10.70767068 10.70830547 10.11831281 10.10821786 8.0814959 10.37975791 10.72506046 77.48346607 74.76787565 75.78431266 73.89077428 73.92914571 24.12471833 9.626393279 9.771067867 8.658757412 14.61255215 0 17.43086334 27.98081693 27.98140911 27.04659437 27.0257419 24.91872689 27.49426357 27.95475568 61.64286707 59.00989918 60.09066956 58.07210156 58.11306589 26.88548218 15.9811711 17.1262391 16.11638162 11.85676168 17.43086334 0]; assert(abs(sum(sum((procGPS(coords)-dist_correct))))<0.005*max(max(dist_correct)))

d = Columns 1 through 18 0 0.0007 1.9502 1.9955 3.4855 1.0439 0.3021 86.5375 83.7851 84.7528 82.9535 82.9899 26.1667 15.8574 15.1872 14.9717 22.5511 10.7077 0.0007 0 1.9501 1.9955 3.4859 1.0438 0.3018 86.5380 83.7855 84.7532 82.9539 82.9903 26.1667 15.8577 15.1875 14.9721 22.5515 10.7083 1.9502 1.9501 0 0.0453 2.1280 0.9072 1.6816 84.9890 82.2309 83.1887 81.4088 81.4448 24.2166 14.2211 13.4883 13.3729 20.9917 10.1183 1.9955 1.9955 0.0453 0 2.1071 0.9526 1.7268 84.9529 82.1947 83.1522 81.3728 81.4088 24.1712 14.1837 13.4494 13.3365 20.9559 10.1082 3.4855 3.4859 2.1280 2.1071 0 2.6908 3.3351 83.0618 80.3081 81.2739 79.4786 79.5149 23.3078 12.3742 11.7209 11.4862 19.0698 8.0815 1.0439 1.0438 0.9072 0.9526 2.6908 0 0.7761 85.7253 82.9697 83.9320 82.1433 82.1795 25.1234 14.9890 14.2851 14.1227 21.7271 10.3798 0.3021 0.3018 1.6816 1.7268 3.3351 0.7761 0 86.3969 83.6432 84.6087 82.8137 82.8500 25.8939 15.6910 15.0060 14.8133 22.4040 10.7251 86.5375 86.5380 84.9890 84.9529 83.0618 85.7253 86.3969 0 2.7841 2.1154 3.5927 3.5545 67.4515 70.7881 71.6020 71.6169 63.9990 77.4835 83.7851 83.7855 82.2309 82.1947 80.3081 82.9697 83.6432 2.7841 0 1.1963 1.0582 1.0122 64.6783 68.0266 68.8365 68.8583 61.2428 74.7679 84.7528 84.7532 83.1887 83.1522 81.2739 83.9320 84.6087 2.1154 1.1963 0 2.2543 2.2083 65.4505 68.9784 69.7796 69.8159 62.2054 75.7843 82.9535 82.9539 81.4088 81.3728 79.4786 82.1433 82.8137 3.5927 1.0582 2.2543 0 0.0460 64.0311 67.2112 68.0292 68.0373 60.4179 73.8908 82.9899 82.9903 81.4448 81.4088 79.5149 82.1795 82.8500 3.5545 1.0122 2.2083 0.0460 0 64.0595 67.2469 68.0646 68.0733 60.4540 73.9291 26.1667 26.1667 24.2166 24.1712 23.3078 25.1234 25.8939 67.4515 64.6783 65.4505 64.0311 64.0595 0 14.9463 14.4740 15.7611 15.1309 24.1247 15.8574 15.8577 14.2211 14.1837 12.3742 14.9890 15.6910 70.7881 68.0266 68.9784 67.2112 67.2469 14.9463 0 1.1482 1.0020 6.8492 9.6264 15.1872 15.1875 13.4883 13.4494 11.7209 14.2851 15.0060 71.6020 68.8365 69.7796 68.0292 68.0646 14.4740 1.1482 0 1.3811 7.7865 9.7711 14.9717 14.9721 13.3729 13.3365 11.4862 14.1227 14.8133 71.6169 68.8583 69.8159 68.0373 68.0733 15.7611 1.0020 1.3811 0 7.6271 8.6588 22.5511 22.5515 20.9917 20.9559 19.0698 21.7271 22.4040 63.9990 61.2428 62.2054 60.4179 60.4540 15.1309 6.8492 7.7865 7.6271 0 14.6126 10.7077 10.7083 10.1183 10.1082 8.0815 10.3798 10.7251 77.4835 74.7679 75.7843 73.8908 73.9291 24.1247 9.6264 9.7711 8.6588 14.6126 0 27.9808 27.9814 27.0466 27.0257 24.9187 27.4943 27.9548 61.6429 59.0099 60.0907 58.0721 58.1131 26.8855 15.9812 17.1262 16.1164 11.8568 17.4309 Column 19 27.9808 27.9814 27.0466 27.0257 24.9187 27.4943 27.9548 61.6429 59.0099 60.0907 58.0721 58.1131 26.8855 15.9812 17.1262 16.1164 11.8568 17.4309 0