Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

Distance Matrix:
0	963	960	1082	909	952	956	1030	1062	954	1035	1215	1037	906	952	1076	1035	1139	-8	1074	905	1002	1267	897	954	1022	897	988	952	955	898	895	-15	902	947	1410	1213	-17	952	888	1184	887	-25	-9	943	951	1206	943	897	-22	1102	-18	-17	945	1018	1013	904	-23	885	-28	-38	906	939	933	894	945	-33	900	925	878	-10	-33	901	879	-38	-24	-19	-16	888	-14	-46	880	873	-32	-53	-23	-20	-11	-31	920	-49	-45	-47	-14	883	-55	-24	-39	-55	-55	-35	-44	-60	-29	-55	916	-40	-64	879	-50	-27	-62	-31	-47	-59	-46	-61	-31	-59	-52	-35	-67	-60	-50	-67	-55	-71	-61	-58	-34	-74	-75	-72	-73	-62	-83	-66	-63	-78	-85	-72	-80	-80	-84	-89	-91	-80	-67	-87	-94	-82	-68	-96	-93	-74	-87	-102	-92	-86	-93	-100	-90	-89	-94	-103	-99	-96	-104	-83	
1224	0	-3	1075	902	-11	949	1023	1064	947	1028	1015	1030	899	945	1067	1028	1122	-15	1067	898	995	1260	890	-9	1009	890	981	-11	948	891	888	-22	895	-16	1027	1046	-24	945	-11	1177	880	-32	-16	936	944	1043	-20	890	-29	1071	-25	-24	-18	1005	1004	897	-30	-14	-35	-45	899	-24	-24	887	-18	-40	893	-32	-21	-17	-40	894	87

JOJ Answer

1033
1128
973
936
987
1073
958
1079
1074
-21
-41
886
-72
937
914
-67
912
1073
938
-15
-27
913
989
929
941
-33
952
-84
1454
-19
1068
-84
983
910
983
1134
906
902
930
1132
947
1500
934
1070
899
-17
1114
1266
935
943
1727
1345
2113
1040
1308
992
988
950
1120
-70
1725
-21
2067
-33
1008
1286
-36
1402
2161
974
-51
-23
929
935
2047
1617
-26
933
959
-22
961
2345
967
938
971
-79
1392
2013
-29
1136
2240
1077
1091
-9
1241
-19
1256
2207
1348
1354
1035
925
947
958
-6
-18
1532
1308
1095
1029
1380
907
1289
1063
-32
-47
-23
1161
-14
1402
898
2101
-30
933
-60
968
-32
891
914
-42
939
-2
2226
1001
-37
-35
1438
1199
-45
-48
959
979
962
1863
1721
943
-33
1236
1217
1030
-27
-2
1135
-19
1106
1146
933
903
996
1073
949
-7
1162
1002
1721
-34
994
-87
-25
986
1016
-49
1291
1033
1425
1026
1766
1065
973
905
1002
912
1054
1054
1156
982
967
1057
967
1062
920
1052
905
914
1523
912
-21
1114
918
969
2079
927
904
1461
-23
932
901
924
926
1299
977
1002
-72
-26
1731
901
2588
991
1018
921
1145
1049
1094
1541
-32
-3
908
2016
2088
940
933
-33
1482
-