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

( -1316 1683 )( 1294 -114 699 1192 683 -1324 -1330 1320 692 -411 -1780 640 -395 -1143 82 -43 1781 1260 -1711 -1342 -1033 -795 -1992 -339 -491 -976 1247 1458 -735 -496 -759 -626 1663 833 -1322 -1872 -1238 115 405 -1058 1270 -528 -1373 -207 145 -90 1590 1023 802 -869 1808 707 -543 1499 -468 -1772 -952 -1772 165 -645 692 374 -953 1314 948 -1072 -1146 863 -189 1354 -1829 213 -406 -1295 651 1215 -1001 -575 -258 531 1770 -155 -134 178 667 -379 831 -257 135 -1539 -1728 -268 -395 1171 -441 723 -167 605 1452 360 -784 -1139 1126 506 1127 1200 377 -1160 -1299 1930 -1668 56 1569 479 1687 696 -310 -148 -1635 -1133 -261 1374 -1190 424 -668 -944 867 )( 1468 866 736 1902 -418 1180 798 605 1753 -353 -1955 -1993 -86 -1459 1311 -1564 379 1620 330 -9 894 -1461 1039 -451 1977 -286 -253 -157 1339 1925 -1350 -1898 -1529 832 -1527 -687 1615 1876 1780 223 1052 153 -1555 -125 586 -30 -74 1683 -924 -1318 1522 -1234 -810 1851 -515 1374 1160 722 1033 1476 121 1822 1104 -1787 -600 1281 -1788 -1231 1483 -352 1101 -1480 258 1368 682 1635 -1