Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

error: user passed empty list where non-empty requried
p2: /in/driver/recursive.cpp:42: void list_checkNonEmpty(list_t): Assertion `0' failed.

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is -6, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer


        

JOJ Answer

( 415 1621 965 -1878 -1348 -1576 1109 634 -1723 -166 -1731 659 424 -459 -138 -1453 -1740 -1891 -720 -921 1023 1461 565 518 277 -1872 752 -868 1201 446 1545 -93 -854 471 -36 -727 -194 1179 249 1250 -339 -1866 -1591 -324 -1167 1816 -977 -83 -1199 1027 -1878 1801 735 -494 -686 -1571 694 -99 1797 -2000 -1899 1380 1360 1590 -1655 -1866 1858 -102 -651 1594 -548 -1113 206 -1562 -1202 1462 1032 -1785 120 -308 -912 -426 1451 654 216 -1490 962 1411 1985 1735 -893 1682 -1753 1234 -662 -1107 -1855 1000 1303 646 -1323 843 1035 -1561 1953 29 -1489 1680 1401 -1615 -780 -116 145 -688 -1309 1317 711 -260 -53 -1670 -970 631 -1967 743 -1487 -1572 450 -1530 1663 -215 -1510 1707 -333 -34 850 -1909 -1017 315 -994 1314 93 -1238 -1590 21 -524 119 -1177 -1798 -690 919 -492 -424 -375 -1376 -172 -1645 -904 1347 -164 101 -1313 1573 198 -1128 1186 -1509 1317 -486 1809 1354 -1229 -1281 195 -709 1946 -1809 -505 1629 -1576 630 -430 1024 1247 729 948 945 1107 -132 1003 -1566 -1349 312 -1234 -1280 713 1249 -1075 -1300 -1063 -1468 1728 1643 62