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, 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

30
9747040
157
[32 140 117 149 58 178 196 74 135 106 82 44 180 48 56 111 145 71 144 23 54 73 135 133 7 167 197 110 115 143]
[6214356 359315 8652667 7031492 635744 8821326 3342549 1282517 4232489 2250623 877176 8526081 5446348 8899079 762098 4231546 1739848 9383769 5537521 370734 4397609 6547125 6686045 5474296 7718558 2946913 4169598 7283804 3519582 7401309]

JOJ Answer

2316