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
122 0 10106,0 INF 1,2814 0 0,2 INF 6216,0 INF 3,1031 0 0,4 INF 1930,0 INF 5,6753 0 0,6 INF 5123,0 INF 7,3059 0 0,8 INF 3954,0 INF 9,670 0 0,10 INF 1039,0 INF 11,447 0 0,13 INF 6793,0 INF 14,2030 0 0,15 INF 6850,0 INF 16,1702 0 0,17 INF 7406,0 INF 18,6015 0 0,19 INF 432,0 INF 22,3452 0 0,23 INF 4010,0 INF 24,5769 0 0,26 INF 1493,0 INF 27,1172 0 0,28 INF 5895,0 INF 29,1850 0 0,30 INF 2639,0 INF 31,2675 0 0,32 INF 4560,0 INF 34,2583 0 0,35 INF 7931,0 INF 37,5958 0 0,38 INF 2807,0 INF 39,1359 0 0,41 INF 2634,0 INF 43,1677 0 0,44 INF 4055,0 INF 45,2107 0 0,46 INF 1869,0 INF 47,202 0 0,48 INF 6696,0 INF 49,5167 0 0,50 INF 3402,0 INF 51,8920 0 0,52 INF 6481,0 INF 53,3204 0 0,55 INF 5255,0 INF 56,2160 0 0,57 INF 8783,0 INF 58,-7 0 0,59 INF 5,0 INF 60,5025 0 0,63 INF 5770,0 INF 64,91 INF 0,65 INF 1457,0 INF 66,1362 0 0,67 INF 783,0 INF 68,6787 0 0,69 INF 3468,0 INF 70,9335 0 0,72 INF 6458,0 INF 73,1785 0 0,74 INF 3323,0 INF 77,6376 0 0,78 INF 4556,0 INF 82,7340 0 0,84 INF 2677,0 INF 85,139 0 0,87 INF 9312,0 INF 89,224
JOJ Answer
245 237 326 152 62 42 77 110 49 518 97 223 115 180 114 80 198 319 44 28 111 57 52 126 101 94 85 76 90 68 150 139 49 82 206 272 213 96 -1 180 21 78 105 199 154 36 98 174 161 44 158 244 345 101 38 12 73 187 81 90 239 264 118 86 128 154 454 112 163 91 79 147 213 4 121 223 86 331 58 308 87 131 240 239 60 65 70 171 71 85 121 -8 232 169 126 64 169 96 138 171 250 137 130 -6 86 141 134 32 28 65 242 241 189 77 18 101 22 15 91 179 183 115 155 101 144 289 280 108 103 113 25 12 85 7 252 95 118 79 321 71 99 72 247 7 58 49 109 182 75 134 183 304 167 71 183 179 188 68 83 131 33 100 154 287 81 49 193 52 -9 104 131 70 140 297 338 88 99 55 54 86 145 93 81 170 172 13 167 32 128 110 84 114 250 19 74 165 207 144 424 159 140 51 71 92 86 145 50 192 12 3 72 160 167 186 125 196 40 72 297 33 121 286 262 93 233 -9 288 148 100 127 154 30 91 25 166 13 176 21 67 81 112 79 113 85 66 497 -2 148 -10 40 183 94 136 120 494 24 280 156 35 140 180 65 1 -9 106 7 132 31 125 -14 136 58 191 34 -10 33 14 71 27 185 224 98 112 140 156 128 112 74 48 161