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, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Edge: 016587 Edge: 022876 Edge: 031497 Edge: 042526 Edge: 054645 Edge: 085619 Edge: 099117 Edge: 0118257 Edge: 0136910 Edge: 0147781 Edge: 0157381 Edge: 0165966 Edge: 017742 Edge: 0204827 Edge: 021364 Edge: 0223629 Edge: 0233369 Edge: 0246547 Edge: 0256379 Edge: 0262185 Edge: 0275578 Edge: 0285522 Edge: 0292249 Edge: 0314318 Edge: 0323013 Edge: 0334976 Edge: 0345573 Edge: 0367612 Edge: 0372376 Edge: 0382839 Edge: 039121 Edge: 040298 Edge: 0414063 Edge: 0425000 Edge: 0439011 Edge: 0440 Edge: 0458323 Edge: 0466051 Edge: 0486155 Edge: 0496893 Edge: 0522518 Edge: 0542266 Edge: 055-9 Edge: 05628 Edge: 0572604 Edge: 0585349 Edge: 0595432 Edge: 0604378 Edge: 0617975 Edge: 0625044 Edge: 0634451 Edge: 0646775 Edge: 0664040 Edge: 0679095 Edge: 0692913 Edge: 0705051 Edge: 0722696 Edge: 0738374 Edge: 104286 Edge: 138765 Edge: 1472 Edge: 157718 Edge: 172006 Edge: 196376 Edge: 1112182 Edge: 1127129 Edge: 1137936 Edge: 1144970 Edge: 1158891 Edge: 1167921 Edge: 1175682 Edge: 1191320 Edge: 1201704 Edge: 121-8 Edge: 1237619 Ed
JOJ Answer
35 27 -16 153 128 -29 117 123 130 -11 80 12 -12 125 95 133 225 21 149 158 55 112 -31 53 16 155 267 68 25 185 93 20 -12 193 25 15 -16 74 107 -10 159 15 101 99 338 47 46 55 34 66 307 240 19 61 75 47 9 68 15 23 55 22 -29 62 20 80 -18 -34 73 63 90 -9 194 77 9 5 47 146 16 17 -13 56 56 17 43 7 52 213 246 182 120 139 68 35 -36 96 43 92 -14 -27 77 9 68 -10 69 146 68 13 4 61 20 15 194 -11 145 26 116 239 -6 26 123 -5 20