Record Case Detail

Notes

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

Stderr

Error: user passed empty tree
p2: /in/driver/recursive.cpp:167: void tree_checkNonEmpty(tree_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

( -926 1380 1553 751 1184 -1354 442 773 28 365 1269 408 1452 -191 -346 745 -192 1047 -1703 1927 914 214 1381 -1434 -1246 1945 466 1709 1311 1207 -1946 -1468 1941 -1774 1828 -1741 1049 -1220 300 1013 1438 1754 -1337 -127 -452 1084 -619 1757 -1969 53 631 938 -1123 38 -1817 482 130 -487 1764 1560 -863 -1259 -299 1614 67 -82 239 -1056 -714 -851 153 -886 -570 782 -256 295 466 -1143 -191 1559 315 -1781 -233 -1291 1178 901 1664 -1521 -1433 527 1933 989 938 -1771 -357 1614 882 1172 -633 -852 473 -393 906 1547 1943 1079 1665 -469 -1436 1976 -400 1895 -673 1246 579 741 -1830 -1208 -1658 1379 1798 -1353 137 -1234 304 -546 -958 1622 111 -840 1000 639 -1683 887 -1839 1102 1155 -1696 -422 236 1007 284 950 -1186 -453 -940 1599 1410 1455 -1694 1718 -804 -601 1428 -897 835 -921 1487 -1284 -1948 1131 688 -1105 -1282 -950 -1916 -1044 -940 -1329 902 1935 1838 -962 263 -1296 -1878 -394 -1465 -891 -1481 -1970 1978 -816 -381 -1978 -1203 -1862 463 -974 -1899 1677 479 1367 1452 -19 -1516 523 -1734 -1973 -236 1687 206 -664 -271 -728 -