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, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
0 2 104650 3 87620 4 14420 5 98740 6 51040 8 96480 9 50240 10 13660 11 -30 12 102780 13 35140 14 47470 18 14200 19 97530 21 67530 23 26180 24 36730 25 -10 26 22290 27 23910 28 52160 30 38130 31 20400 32 72760 33 87960 34 70530 35 27010 36 39860 37 105220 39 37320 40 54670 41 38300 42 60850 43 65290 44 84650 45 64870 46 96380 47 13960 48 66130 49 11600 50 28390 51 -60 53 96890 55 81780 56 70000 57 38290 58 30720 60 102080 61 66100 62 32740 63 49840 64 44240 65 33190 66 75540 68 79340 70 103060 71 74760 72 11370 73 -100 74 49340 75 66040 76 31700 77 15940 78 66670 79 86470 80 36900 81 83080 82 12540 83 16480 84 15190 85 105000 88 45430 89 36210 90 35870 91 22850 92 72610 93 68490 94 43860 95 46050 96 28450 99 85380 100 30140 101 99270 103 57870 104 12220 105 85180 106 85810 107 45310 108 79620 109 -70 110 18040 111 48370 113 93090 114 53350 115 100780 116 50230 117 52900 118 51170 119 84280 121 48070 122 93560 123 90400 124 -70 125 55320 126 -70 127 22620 128 63930 129 73990 131 -50 132 10360 133 104800 134 498
JOJ Answer
-106 -86 -102 -105 1028 864 -84 865 853 982 -12 1431 996 908 1135 -13 -42 1066 897 939 945 -14 -136 877 1060 915 -29 1930 862 2060 -49 918 920 -9 1012 933 -117 899 -56 -119 864 -120 864 964 887 889 -94 -116 -136 956 1701 -51 -24 -27 -8 941 968 -25 -24 -118 936 2049 877 -98 -50 -14 -30 871 997 868 1089 -124 894 -60 944 968 928 888 1001 -11 878 856 -106 -55 940 883 -171 924 -38 -75 1644 -70 1739 -55 852 876 -70 1155 -91 1044 968 955 929 955 1183 1427 958 -33 -65 859 891 -153 -15 927 -73 -44 860 861 940 1048 885 903 1722 -65 904 880 -24 911 958 939 909 945 955 903 -80 906 985 -93 1004 858 -41 -25 968 -43 1095 908 901 942 976 -38 -12 -72 1930 -97 -22 880 901 -111 -103 1045 -56 917 1689 990 -162 -41 922 953 1026 -24 1807 -38 1335 948 997 -91 1059 844 909 941 -15 -114 -118 1029 -81 975 867 855 -48 876 906 -94 1052 -129 969 1727 1065 -43 981 885 -90 -118 1008 -36 937 876 987 1360 -14 896 1020 -89 936 -82 884 928 -68 -64 984 -106 942 -42 953 860 1265 -33 -16 -152 -120 891 -8 930 890 838 1947 854 1052 908 2129 -23 996