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 Memory 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
JOJ Answer
( 30745 -29553 284 42442 16307 39492 -11835 13619 31622 -24923 4856 7780 -17958 -29744 3647 13180 -20757 32151 -42935 -17224 -16285 55644 -51649 34189 -3858 1346 -49719 -64414 21368 31100 -1714 10461 -33665 34259 46464 -24370 32580 49646 -4115 -15231 61226 36624 -18149 29215 -53251 -10484 -16478 -17593 -27067 -25886 -36778 39288 27665 -12200 -8923 -57959 6146 40296 38505 5098 10592 33295 52137 -55782 -7261 27455 48090 -5417 -56576 694 -40848 -40302 25757 -5484 55150 30865 16415 -35751 -11836 51717 -40129 34624 -57760 58547 -11193 9610 10552 18647 -16609 -62315 50861 -31520 -593 37336 -416 16703 39284 45525 -8290 9332 -16896 50886 -2064 54752 -22370 -42985 -27071 -47775 -40668 -37474 )( -50083 -36532 26326 56933 -10806 53127 13994 -11256 7122 -30728 -2534 49367 2253 27155 -17272 -50726 8315 -34890 60768 -48592 -60290 35010 -8010 53872 40774 22220 1224 5857 52425 -56220 -60743 49330 46779 -65466 -45092 -60240 -49969 -12208 4141 -15166 -56307 -30038 59730 -58770 6772 17193 -7205 9639 40745 -56618 3188 34208 4458