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.
Please double check your code to solve this problem and try again.
Your Answer
0 1 1386! 0 2 1427! 0 3 3064! 0 4 1239! 0 5 4884! 0 6 6508! 0 7 3224! 0 8 9364! 0 9 3543! 0 10 7644! 0 11 3129! 0 12 6021! 0 13 7681! 0 14 2030! 0 15 9225! 0 16 6046! 0 17 4909! 0 18 2377! 0 19 2263! 0 20 7813! 0 21 3396! 0 22 8556! 0 23 6719! 0 24 7088! 0 25 2356! 0 26 6314! 0 27 8979! 0 28 5251! 0 29 2235! 0 30 727! 0 31 4462! 0 32 289! 0 33 5859! 0 34 4291! 0 35 2562! 0 36 9426! 0 37 101! 0 38 4862! 0 39 3558! 0 40 3076! 0 41 5453! 0 42 2682! 0 43 7301! 0 44 6157! 0 45 1830! 0 46 7364! 0 47 8174! 0 48 4123! 0 49 1811! 0 50 3695! 0 51 7200! 0 52 3755! 0 54 122! 0 55 728! 0 56 2672! 0 57 643! 0 59 4847! 0 60 4557! 0 61 3073! 0 62 1781! 0 64 1103! 0 65 3884! 0 66 5810! 0 67 3562! 0 69 1255! 0 70 1953! 0 71 5197! 0 72 7340! 0 73 3652! 0 74 7752! 0 75 3732! 0 76 6976! 0 77 5576! 0 78 4518! 0 79 5619! 0 80 7710! 0 81 3621! 0 82 4393! 0 83 3341! 0 84 6521! 0 85 354! 0 86 4963! 0 87 9189! 0 88 3130! 0 89 6619! 0 90 7093! 0 91 173
JOJ Answer
316 81 549 252 348 220 322 124 230 396 229 345 231 204 416 264 545 116 341 366 444 300 229 244 315 194 650 245 139 541 223 402 182 244 253 211 342 237