Notes
This function is in beta test. Please help improve it in the issues
here.
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
50 102 5 51 103 22 51 104 13 52 105 15 52 106 11 53 107 11 53 108 11 54 109 22 54 110 13 55 111 10 55 112 6 56 113 28 56 114 12 57 115 20 57 116 17 58 117 26 58 118 7 59 119 17 59 120 15 60 121 8 60 122 10 61 123 16 61 124 0 62 125 25 62 126 0 63 127 1 63 128 29 64 129 24 64 130 17 65 131 0 65 132 12 66 133 20 66 134 11 67 135 23 67 136 11 68 137 2 68 138 12 69 139 19 69 140 1 70 141 28 70 142 0 71 143 28 71 144 3 72 145 24 72 146 21 73 147 20 73 148 24 74 149 18 74 150 5 75 151 24 75 152 29 76 153 24 76 154 16 77 155 10 77 156 14 78 157 13 78 158 10 79 159 16 79 160 7 80 161 14 80 162 16 81 163 1 81 164 0 82 165 27 82 166 5 83 167 6 83 168 29 84 169 23 84 170 5 85 171 8 85 172 4 86 173 18 86 174 10 87 175 7 87 176 8 88 177 23 88 178 6 89 179 11 89 180 19 90 181 7 90 182 17 91 183 20 91 184 4 92 185 17 92 186 23 93 187 14 93 188 27 94 189 7 94 190 16 95 191 0 95 192 9 96 193 3 96 194 18 97 195 26 97 196 23 98 197 17 98 198 17 99 199 10 Shortest path length is 82 The graph is a DAG The total weight of MST is 2
JOJ Answer
Shortest path length is 82 The graph is a DAG The total weight of MST is 2843