Test case fail in submit but give correct output when run as test case custom input. C code


#1

74 10 21 57 80 114 137 184 218 234 246 282 298 337 338 372 406 445 474 488 535 554 586 604 637 680 683 728 765 777 785 815 821 836 838 875 879 892 913 930 951 952 978 1003 1022 1058 1090 1091 1131 1152 1164 1172 1201 1220 1223 1267 1272 1299 1324 1370 1400 1415 1424 1458 1506 1550 1557 1599 1623 1629 1673 1685 1709 1721 1750
56 -228 -193 -147 -117 -105 -81 -42 6 11 41 63 98 140 162 190 229 250 286 310 347 354 403 410 435 437 485 509 548 563 563 609 643 644 688 717 730 776 820 851 890 923 966 1009 1031 1079 1088 1095 1133 1163 1210 1242 1269 1317 1336 1345 1347
56 69 83 104 123 161 174 217 265 291 308 324 351 397 437 485 529 548 578 581 589 598 614 647 692 727 737 765 797 810 810 855 886 888 896 900 904 936 981 981 988 1000 1026 1041 1079 1101 1125 1138 1158 1161 1201 1249 1262 1267 1292 1322 1330

answer should be 2. giving 2 when ran as custom input but not on submitting. it is giving 0 on submit