diff --git a/.gitattributes b/.gitattributes index c751a1c5ce5c5a5016549abaaad08a07baed7bf3..03b7f8199f9180368100b0f345bf4d665c907af7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -265,3 +265,9 @@ partition_array_such_that_maximum_difference_is_k/meta.json filter=lfs diff=lfs paths_in_matrix_whose_sum_is_divisible_by_k/meta.json filter=lfs diff=lfs merge=lfs -text reachable_nodes_with_restrictions/meta.json filter=lfs diff=lfs merge=lfs -text rearrange_array_elements_by_sign/meta.json filter=lfs diff=lfs merge=lfs -text +rearranging_fruits/meta.json filter=lfs diff=lfs merge=lfs -text +remove_methods_from_project/haskell_tests/Main.hs filter=lfs diff=lfs merge=lfs -text +remove_methods_from_project/meta.json filter=lfs diff=lfs merge=lfs -text +remove_methods_from_project/ocaml_tests/main.ml filter=lfs diff=lfs merge=lfs -text +remove_methods_from_project/scala_tests/MySuite.scala filter=lfs diff=lfs merge=lfs -text +removing_minimum_number_of_magic_beans/meta.json filter=lfs diff=lfs merge=lfs -text diff --git a/rearranging_fruits/.DS_Store b/rearranging_fruits/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..dbdd92ff06e5be0bcb7bb777469261f52475ba86 Binary files /dev/null and b/rearranging_fruits/.DS_Store differ diff --git a/rearranging_fruits/haskell_tests/Main.hs b/rearranging_fruits/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..21247cb84902dcacf6d4db48a341a55186dd045c --- /dev/null +++ b/rearranging_fruits/haskell_tests/Main.hs @@ -0,0 +1,24 @@ + +module Main where +import Test.HUnit + +--Program start + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (minCost [4,2,2,2] [1,4,1,2])," 1 (minCost [4,2,2,2] [1,4,1,2])) + +test2 :: Test +test2 = TestCase (assertEqual "for (minCost [2,3,4,1] [3,2,5,1])," (-1) (minCost [2,3,4,1] [3,2,5,1])) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/rearranging_fruits/java_tests/Main.java b/rearranging_fruits/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..7c940f06f55f5f7b974b9ab03a7d47e2f5bdf341 --- /dev/null +++ b/rearranging_fruits/java_tests/Main.java @@ -0,0 +1,21 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(1, minCost(new ArrayList<>(Arrays.asList(4,2,2,2)), new ArrayList<>(Arrays.asList(1,4,1,2)))); +} +@Test +public void test2() { + assertEquals(-1, minCost(new ArrayList<>(Arrays.asList(2,3,4,1)), new ArrayList<>(Arrays.asList(3,2,5,1)))); +} + +} diff --git a/rearranging_fruits/meta.json b/rearranging_fruits/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..49af5f4fda6da2a9df42aa593ce5c639a20c9565 --- /dev/null +++ b/rearranging_fruits/meta.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2bcc97d1e30b972adbcba8f073ea0a29a4b4ea1aa541d2d9183274395e7dd05 +size 29333192 diff --git a/rearranging_fruits/ocaml_tests/main.ml b/rearranging_fruits/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..a433b8140d4431853438225b24c36491541d2dd1 --- /dev/null +++ b/rearranging_fruits/ocaml_tests/main.ml @@ -0,0 +1,26 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal 1 (minCost [4;2;2;2] [1;4;1;2]) + +let test2 _ = assert_equal (-1) (minCost [2;3;4;1] [3;2;5;1]) + + + (* Grouping test cases *) + let suite = "Test Suite for minCost" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/rearranging_fruits/scala_tests/MySuite.scala b/rearranging_fruits/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..1a6f5c44a02f6591083ed46fb77e3f313c51c0a0 --- /dev/null +++ b/rearranging_fruits/scala_tests/MySuite.scala @@ -0,0 +1,12 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.minCost(List(4,2,2,2),List(1,4,1,2)), 1) + } + + test("test2") { + assertEquals(Main.minCost(List(2,3,4,1),List(3,2,5,1)), -1) + } + +} diff --git a/recover_the_original_array/.DS_Store b/recover_the_original_array/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2190daafff1a9907a2d8cbaf58f7f2a8bc67dcce Binary files /dev/null and b/recover_the_original_array/.DS_Store differ diff --git a/recover_the_original_array/haskell_tests/Main.hs b/recover_the_original_array/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..7c0c6e6ef83734b8e2de5cb4ac782738164741c3 --- /dev/null +++ b/recover_the_original_array/haskell_tests/Main.hs @@ -0,0 +1,27 @@ + +module Main where +import Test.HUnit + +--Program start + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (recoverArray [2,10,6,4,8,12])," [3,7,11] (recoverArray [2,10,6,4,8,12])) + +test2 :: Test +test2 = TestCase (assertEqual "for (recoverArray [1,1,3,3])," [2,2] (recoverArray [1,1,3,3])) + +test3 :: Test +test3 = TestCase (assertEqual "for (recoverArray [5,435])," [220] (recoverArray [5,435])) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/recover_the_original_array/java_tests/Main.java b/recover_the_original_array/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..2a2d25a0a7a44f3643fc49d09afb700a009ef386 --- /dev/null +++ b/recover_the_original_array/java_tests/Main.java @@ -0,0 +1,25 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(new ArrayList<>(Arrays.asList(3,7,11)), recoverArray(new ArrayList<>(Arrays.asList(2,10,6,4,8,12)))); +} +@Test +public void test2() { + assertEquals(new ArrayList<>(Arrays.asList(2,2)), recoverArray(new ArrayList<>(Arrays.asList(1,1,3,3)))); +} +@Test +public void test3() { + assertEquals(new ArrayList<>(Arrays.asList(220)), recoverArray(new ArrayList<>(Arrays.asList(5,435)))); +} + +} diff --git a/recover_the_original_array/meta.json b/recover_the_original_array/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..d67582930d17ad5734adb1e89c08898ee84ac796 --- /dev/null +++ b/recover_the_original_array/meta.json @@ -0,0 +1,11144 @@ +{ + "id": 2241, + "name": "recover_the_original_array", + "difficulty": "Hard", + "link": "https://leetcode.com/problems/recover-the-original-array/", + "date": "1639872000000", + "task_description": "Alice had a **0-indexed** array `arr` consisting of `n` **positive** integers. She chose an arbitrary **positive integer** `k` and created two new **0-indexed** integer arrays `lower` and `higher` in the following manner: `lower[i] = arr[i] - k`, for every index `i` where `0 <= i < n` `higher[i] = arr[i] + k`, for every index `i` where `0 <= i < n` Unfortunately, Alice lost all three arrays. However, she remembers the integers that were present in the arrays `lower` and `higher`, but not the array each integer belonged to. Help Alice and recover the original array. Given an array `nums` consisting of `2n` integers, where **exactly** `n` of the integers were present in `lower` and the remaining in `higher`, return _the **original** array_ `arr`. In case the answer is not unique, return _**any** valid array_. **Note:** The test cases are generated such that there exists **at least one** valid array `arr`. **Example 1:** ``` **Input:** nums = [2,10,6,4,8,12] **Output:** [3,7,11] **Explanation:** If arr = [3,7,11] and k = 1, we get lower = [2,6,10] and higher = [4,8,12]. Combining lower and higher gives us [2,6,10,4,8,12], which is a permutation of nums. Another valid possibility is that arr = [5,7,9] and k = 3. In that case, lower = [2,4,6] and higher = [8,10,12]. ``` **Example 2:** ``` **Input:** nums = [1,1,3,3] **Output:** [2,2] **Explanation:** If arr = [2,2] and k = 1, we get lower = [1,1] and higher = [3,3]. Combining lower and higher gives us [1,1,3,3], which is equal to nums. Note that arr cannot be [1,3] because in that case, the only possible way to obtain [1,1,3,3] is with k = 0. This is invalid since k must be positive. ``` **Example 3:** ``` **Input:** nums = [5,435] **Output:** [220] **Explanation:** The only possible combination is arr = [220] and k = 215. Using them, we get lower = [5] and higher = [435]. ``` **Constraints:** `2 * n == nums.length` `1 <= n <= 1000` `1 <= nums[i] <= 109` The test cases are generated such that there exists **at least one** valid array `arr`.", + "public_test_cases": [ + { + "label": "Example 1", + "input": "nums = [2,10,6,4,8,12]", + "output": "[3,7,11] " + }, + { + "label": "Example 2", + "input": "nums = [1,1,3,3]", + "output": "[2,2] " + }, + { + "label": "Example 3", + "input": "nums = [5,435]", + "output": "[220] " + } + ], + "private_test_cases": [ + { + "input": [ + -859206956, + -859003022, + -858707034, + -858661984, + -855475426, + -853841184, + -849899124, + -846048078, + -845573802, + -844554234, + -843305007, + -842049069, + -841963224, + -841740047, + -838820689, + -838628231, + -836756875, + -836719244, + -836067143, + -834173769, + -833229947, + -832203989, + -832045865, + -830372865, + -828714207, + -825428249, + -818244840, + -814803064, + -807903238, + -803025083, + -800916385, + -797353991, + -793639508, + -793512972, + -792973064, + -791418054, + -789815645, + -788436253, + -776420305, + -774470338, + -772871763, + -770858682, + -768143868, + -767360346, + -765872442, + -765656446, + -764309268, + -762852487, + -755153460, + -749400617, + -746540723, + -745772837, + -744884321, + -742429717, + -741452120, + -738733332, + -738426836, + -735364540, + -734984524, + -728030986, + -727701901, + -727241845, + -726182766, + -724198362, + -724093269, + -724003841, + -720698856, + -718900874, + -715196481, + -713694174, + -708392423, + -707903364, + -706227429, + -706010777, + -705356430, + -697431968, + -694329175, + -691583150, + -684722331, + -681352095, + -679663206, + -679141590, + -678615567, + -678437806, + -677519952, + -673416739, + -672580218, + -672346408, + -670699550, + -668810969, + -665250858, + -664583699, + -664179072, + -662192131, + -662092938, + -659924520, + -659491451, + -655373705, + -654953568, + -651391977, + -651365801, + -649934801, + -649701170, + -647991679, + -644343630, + -644130731, + -643632447, + -642406190, + -640912375, + -640769653, + -639280071, + -635426058, + -633848751, + -629258032, + -622735475, + -621588155, + -620306100, + -619838411, + -611519719, + -610850128, + -609243315, + -607494689, + -606168735, + -605863589, + -601524185, + -596107820, + -596015715, + -592300988, + -592170841, + -591126368, + -590804163, + -589370401, + -585839313, + -585118308, + -582971451, + -582828408, + -581582586, + -579670809, + -577112857, + -576704449, + -576454870, + -574885315, + -573522908, + -572574812, + -572099242, + -570663169, + -570054320, + -569985808, + -569620766, + -567567615, + -567314881, + -565933132, + -563389031, + -562401340, + -559537074, + -557754437, + -556839688, + -555054733, + -553839171, + -552724019, + -552604514, + -551352091, + -547180892, + -546753116, + -542900206, + -542324930, + -541555978, + -539345744, + -537339735, + -537036886, + -535497135, + -534840506, + -531316579, + -526302465, + -526285553, + -526122809, + -524156472, + -523897206, + -522491730, + -522214564, + -522051600, + -521316156, + -520891121, + -520759296, + -520619238, + -519833744, + -518690894, + -517195683, + -514225034, + -511559490, + -511556693, + -511378805, + -510587857, + -509782983, + -509352584, + -505756950, + -504562530, + -501658175, + -500896808, + -497852515, + -491325131, + -488050064, + -487439319, + -487091093, + -485320766, + -481146935, + -478559176, + -478323824, + -478102990, + -477969482, + -477914061, + -475388068, + -473802777, + -473593377, + -466415971, + -462615416, + -462098407, + -456045926, + -450335750, + -449283207, + -445737346, + -444720177, + -444456688, + -442957283, + -442877784, + -439429502, + -437324817, + -436496837, + -433204990, + -428244504, + -427589124, + -427005206, + -425664578, + -424043085, + -423329593, + -421200551, + -421164200, + -417384782, + -417070823, + -416388636, + -414729698, + -414431289, + -411892962, + -409338391, + -407189707, + -402440285, + -402115026, + -401160260, + -399489107, + -399094483, + -397827746, + -397334251, + -396334929, + -394664886, + -394301136, + -393691083, + -393038466, + -392351162, + -390312048, + -386029199, + -385188183, + -383389326, + -382811942, + -381551653, + -380635369, + -376719233, + -375380858, + -375267626, + -375127224, + -372520867, + -371487638, + -368413461, + -365923986, + -365743556, + -355767920, + -351746250, + -351536206, + -349886054, + -349728298, + -346318225, + -344992921, + -344347211, + -341101000, + -338417556, + -329341920, + -328431447, + -326547570, + -321088173, + -315045963, + -314055918, + -312746664, + -311526656, + -310041492, + -309364672, + -308893154, + -307617030, + -304163997, + -301922127, + -300330504, + -298230679, + -296907370, + -296334936, + -295801044, + -295749702, + -294838108, + -293530994, + -292127832, + -291369693, + -289373768, + -288483936, + -288335824, + -286940656, + -281009890, + -280563278, + -280382028, + -278248728, + -277530071, + -277403065, + -277092890, + -275581947, + -267988193, + -263574936, + -263542015, + -262056172, + -260870980, + -258418788, + -257402673, + -256968051, + -254898688, + -254593325, + -252026868, + -251850199, + -251311410, + -249240173, + -249220335, + -246304714, + -245928714, + -245123909, + -242282112, + -236846599, + -235798017, + -233118738, + -233038293, + -231936153, + -230440736, + -228019162, + -226798832, + -224709820, + -216638183, + -212927395, + -211932305, + -210527411, + -209608656, + -201282687, + -198044330, + -197275698, + -196520340, + -195980961, + -193087891, + -187758144, + -187072956, + -185882556, + -183332851, + -180810172, + -174117486, + -171168873, + -162410866, + -161500978, + -155056178, + -154449957, + -153601926, + -153568137, + -151914296, + -148233107, + -147345847, + -145475992, + -144319338, + -144051660, + -143135715, + -142782824, + -139697873, + -138743057, + -133847477, + -133487915, + -131055235, + -130798627, + -129425509, + -129256889, + -129153186, + -127197099, + -126783582, + -126268762, + -125233703, + -123095784, + -122327501, + -119254786, + -116130355, + -116082413, + -114886724, + -113368905, + -112905509, + -112624526, + -109768039, + -108063771, + -106141842, + -104710505, + -102757571, + -100688021, + -99986972, + -98084970, + -96763998, + -96170977, + -95259292, + -94020613, + -90983210, + -88761895, + -84156605, + -83814569, + -83615580, + -82209761, + -80775576, + -74149247, + -73121689, + -71981652, + -71510601, + -71395077, + -70383993, + -62189246, + -61253302, + -55921450, + -55529231, + -54315977, + -47872863, + -46274909, + -41424539, + -39504641, + -38889213, + -38045626, + -36251896, + -36085197, + -33856412, + -32434455, + -27618498, + -27096653, + -25528305, + -21125834, + -20356504, + -19833114, + -19066139, + -18264794, + -14595181, + -14072558, + -13929648, + -13856314, + -11552194, + -5949382, + -4390152, + -4221894, + -1174070, + 1299298, + 2800103, + 6646174, + 9121586, + 10957030, + 11250002, + 12533001, + 15511998, + 19067880, + 21313917, + 22664627, + 23868389, + 24812287, + 26529250, + 27018710, + 27284174, + 27526970, + 27812829, + 32598661, + 34750321, + 35775117, + 36803802, + 37416660, + 37996373, + 40176677, + 41347825, + 42199828, + 44855670, + 45113407, + 45546436, + 47923088, + 48012978, + 51138019, + 52152523, + 53055580, + 57007957, + 60153765, + 62034814, + 63870716, + 68144326, + 69276966, + 69470948, + 70983893, + 71444632, + 73526627, + 75038888, + 75054315, + 76601536, + 80204190, + 81270442, + 84178974, + 84468781, + 86979957, + 88187479, + 88252015, + 89994872, + 90454972, + 90924716, + 91932755, + 95031801, + 97673970, + 99960547, + 104572338, + 104750026, + 110761896, + 111270715, + 112993137, + 116097328, + 118559838, + 120930024, + 121815046, + 122820167, + 125121470, + 125971236, + 127267811, + 127802627, + 883950556, + 884154490, + 884450478, + 884495528, + 887682086, + 889316328, + 893258388, + 897109434, + 897583710, + 898603278, + 899852505, + 901108443, + 901194288, + 901417465, + 904336823, + 904529281, + 906400637, + 906438268, + 907090369, + 908983743, + 909927565, + 910953523, + 911111647, + 912784647, + 914443305, + 917729263, + 924912672, + 928354448, + 935254274, + 940132429, + 942241127, + 945803521, + 949518004, + 949644540, + 950184448, + 951739458, + 953341867, + 954721259, + 966737207, + 968687174, + 970285749, + 972298830, + 975013644, + 975797166, + 977285070, + 977501066, + 978848244, + 980305025, + 988004052, + 993756895, + 996616789, + 997384675, + 998273191, + 1000727795, + 1001705392, + 1004424180, + 1004730676, + 1007792972, + 1008172988, + 1015126526, + 1015455611, + 1015915667, + 1016974746, + 1018959150, + 1019064243, + 1019153671, + 1022458656, + 1024256638, + 1027961031, + 1029463338, + 1034765089, + 1035254148, + 1036930083, + 1037146735, + 1037801082, + 1045725544, + 1048828337, + 1051574362, + 1058435181, + 1061805417, + 1063494306, + 1064015922, + 1064541945, + 1064719706, + 1065637560, + 1069740773, + 1070577294, + 1070811104, + 1072457962, + 1074346543, + 1077906654, + 1078573813, + 1078978440, + 1080965381, + 1081064574, + 1083232992, + 1083666061, + 1087783807, + 1088203944, + 1091765535, + 1091791711, + 1093222711, + 1093456342, + 1095165833, + 1098813882, + 1099026781, + 1099525065, + 1100751322, + 1102245137, + 1102387859, + 1103877441, + 1107731454, + 1109308761, + 1113899480, + 1120422037, + 1121569357, + 1122851412, + 1123319101, + 1131637793, + 1132307384, + 1133914197, + 1135662823, + 1136988777, + 1137293923, + 1141633327, + 1147049692, + 1147141797, + 1150856524, + 1150986671, + 1152031144, + 1152353349, + 1153787111, + 1157318199, + 1158039204, + 1160186061, + 1160329104, + 1161574926, + 1163486703, + 1166044655, + 1166453063, + 1166702642, + 1168272197, + 1169634604, + 1170582700, + 1171058270, + 1172494343, + 1173103192, + 1173171704, + 1173536746, + 1175589897, + 1175842631, + 1177224380, + 1179768481, + 1180756172, + 1183620438, + 1185403075, + 1186317824, + 1188102779, + 1189318341, + 1190433493, + 1190552998, + 1191805421, + 1195976620, + 1196404396, + 1200257306, + 1200832582, + 1201601534, + 1203811768, + 1205817777, + 1206120626, + 1207660377, + 1208317006, + 1211840933, + 1216855047, + 1216871959, + 1217034703, + 1219001040, + 1219260306, + 1220665782, + 1220942948, + 1221105912, + 1221841356, + 1222266391, + 1222398216, + 1222538274, + 1223323768, + 1224466618, + 1225961829, + 1228932478, + 1231598022, + 1231600819, + 1231778707, + 1232569655, + 1233374529, + 1233804928, + 1237400562, + 1238594982, + 1241499337, + 1242260704, + 1245304997, + 1251832381, + 1255107448, + 1255718193, + 1256066419, + 1257836746, + 1262010577, + 1264598336, + 1264833688, + 1265054522, + 1265188030, + 1265243451, + 1267769444, + 1269354735, + 1269564135, + 1276741541, + 1280542096, + 1281059105, + 1287111586, + 1292821762, + 1293874305, + 1297420166, + 1298437335, + 1298700824, + 1300200229, + 1300279728, + 1303728010, + 1305832695, + 1306660675, + 1309952522, + 1314913008, + 1315568388, + 1316152306, + 1317492934, + 1319114427, + 1319827919, + 1321956961, + 1321993312, + 1325772730, + 1326086689, + 1326768876, + 1328427814, + 1328726223, + 1331264550, + 1333819121, + 1335967805, + 1340717227, + 1341042486, + 1341997252, + 1343668405, + 1344063029, + 1345329766, + 1345823261, + 1346822583, + 1348492626, + 1348856376, + 1349466429, + 1350119046, + 1350806350, + 1352845464, + 1357128313, + 1357969329, + 1359768186, + 1360345570, + 1361605859, + 1362522143, + 1366438279, + 1367776654, + 1367889886, + 1368030288, + 1370636645, + 1371669874, + 1374744051, + 1377233526, + 1377413956, + 1387389592, + 1391411262, + 1391621306, + 1393271458, + 1393429214, + 1396839287, + 1398164591, + 1398810301, + 1402056512, + 1404739956, + 1413815592, + 1414726065, + 1416609942, + 1422069339, + 1428111549, + 1429101594, + 1430410848, + 1431630856, + 1433116020, + 1433792840, + 1434264358, + 1435540482, + 1438993515, + 1441235385, + 1442827008, + 1444926833, + 1446250142, + 1446822576, + 1447356468, + 1447407810, + 1448319404, + 1449626518, + 1451029680, + 1451787819, + 1453783744, + 1454673576, + 1454821688, + 1456216856, + 1462147622, + 1462594234, + 1462775484, + 1464908784, + 1465627441, + 1465754447, + 1466064622, + 1467575565, + 1475169319, + 1479582576, + 1479615497, + 1481101340, + 1482286532, + 1484738724, + 1485754839, + 1486189461, + 1488258824, + 1488564187, + 1491130644, + 1491307313, + 1491846102, + 1493917339, + 1493937177, + 1496852798, + 1497228798, + 1498033603, + 1500875400, + 1506310913, + 1507359495, + 1510038774, + 1510119219, + 1511221359, + 1512716776, + 1515138350, + 1516358680, + 1518447692, + 1526519329, + 1530230117, + 1531225207, + 1532630101, + 1533548856, + 1541874825, + 1545113182, + 1545881814, + 1546637172, + 1547176551, + 1550069621, + 1555399368, + 1556084556, + 1557274956, + 1559824661, + 1562347340, + 1569040026, + 1571988639, + 1580746646, + 1581656534, + 1588101334, + 1588707555, + 1589555586, + 1589589375, + 1591243216, + 1594924405, + 1595811665, + 1597681520, + 1598838174, + 1599105852, + 1600021797, + 1600374688, + 1603459639, + 1604414455, + 1609310035, + 1609669597, + 1612102277, + 1612358885, + 1613732003, + 1613900623, + 1614004326, + 1615960413, + 1616373930, + 1616888750, + 1617923809, + 1620061728, + 1620830011, + 1623902726, + 1627027157, + 1627075099, + 1628270788, + 1629788607, + 1630252003, + 1630532986, + 1633389473, + 1635093741, + 1637015670, + 1638447007, + 1640399941, + 1642469491, + 1643170540, + 1645072542, + 1646393514, + 1646986535, + 1647898220, + 1649136899, + 1652174302, + 1654395617, + 1659000907, + 1659342943, + 1659541932, + 1660947751, + 1662381936, + 1669008265, + 1670035823, + 1671175860, + 1671646911, + 1671762435, + 1672773519, + 1680968266, + 1681904210, + 1687236062, + 1687628281, + 1688841535, + 1695284649, + 1696882603, + 1701732973, + 1703652871, + 1704268299, + 1705111886, + 1706905616, + 1707072315, + 1709301100, + 1710723057, + 1715539014, + 1716060859, + 1717629207, + 1722031678, + 1722801008, + 1723324398, + 1724091373, + 1724892718, + 1728562331, + 1729084954, + 1729227864, + 1729301198, + 1731605318, + 1737208130, + 1738767360, + 1738935618, + 1741983442, + 1744456810, + 1745957615, + 1749803686, + 1752279098, + 1754114542, + 1754407514, + 1755690513, + 1758669510, + 1762225392, + 1764471429, + 1765822139, + 1767025901, + 1767969799, + 1769686762, + 1770176222, + 1770441686, + 1770684482, + 1770970341, + 1775756173, + 1777907833, + 1778932629, + 1779961314, + 1780574172, + 1781153885, + 1783334189, + 1784505337, + 1785357340, + 1788013182, + 1788270919, + 1788703948, + 1791080600, + 1791170490, + 1794295531, + 1795310035, + 1796213092, + 1800165469, + 1803311277, + 1805192326, + 1807028228, + 1811301838, + 1812434478, + 1812628460, + 1814141405, + 1814602144, + 1816684139, + 1818196400, + 1818211827, + 1819759048, + 1823361702, + 1824427954, + 1827336486, + 1827626293, + 1830137469, + 1831344991, + 1831409527, + 1833152384, + 1833612484, + 1834082228, + 1835090267, + 1838189313, + 1840831482, + 1843118059, + 1847729850, + 1847907538, + 1853919408, + 1854428227, + 1856150649, + 1859254840, + 1861717350, + 1864087536, + 1864972558, + 1865977679, + 1868278982, + 1869128748, + 1870425323, + 1870960139 + ], + "output": [ + 12371800, + 12575734, + 12871722, + 12916772, + 16103330, + 17737572, + 21679632, + 25530678, + 26004954, + 27024522, + 28273749, + 29529687, + 29615532, + 29838709, + 32758067, + 32950525, + 34821881, + 34859512, + 35511613, + 37404987, + 38348809, + 39374767, + 39532891, + 41205891, + 42864549, + 46150507, + 53333916, + 56775692, + 63675518, + 68553673, + 70662371, + 74224765, + 77939248, + 78065784, + 78605692, + 80160702, + 81763111, + 83142503, + 95158451, + 97108418, + 98706993, + 100720074, + 103434888, + 104218410, + 105706314, + 105922310, + 107269488, + 108726269, + 116425296, + 122178139, + 125038033, + 125805919, + 126694435, + 129149039, + 130126636, + 132845424, + 133151920, + 136214216, + 136594232, + 143547770, + 143876855, + 144336911, + 145395990, + 147380394, + 147485487, + 147574915, + 150879900, + 152677882, + 156382275, + 157884582, + 163186333, + 163675392, + 165351327, + 165567979, + 166222326, + 174146788, + 177249581, + 179995606, + 186856425, + 190226661, + 191915550, + 192437166, + 192963189, + 193140950, + 194058804, + 198162017, + 198998538, + 199232348, + 200879206, + 202767787, + 206327898, + 206995057, + 207399684, + 209386625, + 209485818, + 211654236, + 212087305, + 216205051, + 216625188, + 220186779, + 220212955, + 221643955, + 221877586, + 223587077, + 227235126, + 227448025, + 227946309, + 229172566, + 230666381, + 230809103, + 232298685, + 236152698, + 237730005, + 242320724, + 248843281, + 249990601, + 251272656, + 251740345, + 260059037, + 260728628, + 262335441, + 264084067, + 265410021, + 265715167, + 270054571, + 275470936, + 275563041, + 279277768, + 279407915, + 280452388, + 280774593, + 282208355, + 285739443, + 286460448, + 288607305, + 288750348, + 289996170, + 291907947, + 294465899, + 294874307, + 295123886, + 296693441, + 298055848, + 299003944, + 299479514, + 300915587, + 301524436, + 301592948, + 301957990, + 304011141, + 304263875, + 305645624, + 308189725, + 309177416, + 312041682, + 313824319, + 314739068, + 316524023, + 317739585, + 318854737, + 318974242, + 320226665, + 324397864, + 324825640, + 328678550, + 329253826, + 330022778, + 332233012, + 334239021, + 334541870, + 336081621, + 336738250, + 340262177, + 345276291, + 345293203, + 345455947, + 347422284, + 347681550, + 349087026, + 349364192, + 349527156, + 350262600, + 350687635, + 350819460, + 350959518, + 351745012, + 352887862, + 354383073, + 357353722, + 360019266, + 360022063, + 360199951, + 360990899, + 361795773, + 362226172, + 365821806, + 367016226, + 369920581, + 370681948, + 373726241, + 380253625, + 383528692, + 384139437, + 384487663, + 386257990, + 390431821, + 393019580, + 393254932, + 393475766, + 393609274, + 393664695, + 396190688, + 397775979, + 397985379, + 405162785, + 408963340, + 409480349, + 415532830, + 421243006, + 422295549, + 425841410, + 426858579, + 427122068, + 428621473, + 428700972, + 432149254, + 434253939, + 435081919, + 438373766, + 443334252, + 443989632, + 444573550, + 445914178, + 447535671, + 448249163, + 450378205, + 450414556, + 454193974, + 454507933, + 455190120, + 456849058, + 457147467, + 459685794, + 462240365, + 464389049, + 469138471, + 469463730, + 470418496, + 472089649, + 472484273, + 473751010, + 474244505, + 475243827, + 476913870, + 477277620, + 477887673, + 478540290, + 479227594, + 481266708, + 485549557, + 486390573, + 488189430, + 488766814, + 490027103, + 490943387, + 494859523, + 496197898, + 496311130, + 496451532, + 499057889, + 500091118, + 503165295, + 505654770, + 505835200, + 515810836, + 519832506, + 520042550, + 521692702, + 521850458, + 525260531, + 526585835, + 527231545, + 530477756, + 533161200, + 542236836, + 543147309, + 545031186, + 550490583, + 556532793, + 557522838, + 558832092, + 560052100, + 561537264, + 562214084, + 562685602, + 563961726, + 567414759, + 569656629, + 571248252, + 573348077, + 574671386, + 575243820, + 575777712, + 575829054, + 576740648, + 578047762, + 579450924, + 580209063, + 582204988, + 583094820, + 583242932, + 584638100, + 590568866, + 591015478, + 591196728, + 593330028, + 594048685, + 594175691, + 594485866, + 595996809, + 603590563, + 608003820, + 608036741, + 609522584, + 610707776, + 613159968, + 614176083, + 614610705, + 616680068, + 616985431, + 619551888, + 619728557, + 620267346, + 622338583, + 622358421, + 625274042, + 625650042, + 626454847, + 629296644, + 634732157, + 635780739, + 638460018, + 638540463, + 639642603, + 641138020, + 643559594, + 644779924, + 646868936, + 654940573, + 658651361, + 659646451, + 661051345, + 661970100, + 670296069, + 673534426, + 674303058, + 675058416, + 675597795, + 678490865, + 683820612, + 684505800, + 685696200, + 688245905, + 690768584, + 697461270, + 700409883, + 709167890, + 710077778, + 716522578, + 717128799, + 717976830, + 718010619, + 719664460, + 723345649, + 724232909, + 726102764, + 727259418, + 727527096, + 728443041, + 728795932, + 731880883, + 732835699, + 737731279, + 738090841, + 740523521, + 740780129, + 742153247, + 742321867, + 742425570, + 744381657, + 744795174, + 745309994, + 746345053, + 748482972, + 749251255, + 752323970, + 755448401, + 755496343, + 756692032, + 758209851, + 758673247, + 758954230, + 761810717, + 763514985, + 765436914, + 766868251, + 768821185, + 770890735, + 771591784, + 773493786, + 774814758, + 775407779, + 776319464, + 777558143, + 780595546, + 782816861, + 787422151, + 787764187, + 787963176, + 789368995, + 790803180, + 797429509, + 798457067, + 799597104, + 800068155, + 800183679, + 801194763, + 809389510, + 810325454, + 815657306, + 816049525, + 817262779, + 823705893, + 825303847, + 830154217, + 832074115, + 832689543, + 833533130, + 835326860, + 835493559, + 837722344, + 839144301, + 843960258, + 844482103, + 846050451, + 850452922, + 851222252, + 851745642, + 852512617, + 853313962, + 856983575, + 857506198, + 857649108, + 857722442, + 860026562, + 865629374, + 867188604, + 867356862, + 870404686, + 872878054, + 874378859, + 878224930, + 880700342, + 882535786, + 882828758, + 884111757, + 887090754, + 890646636, + 892892673, + 894243383, + 895447145, + 896391043, + 898108006, + 898597466, + 898862930, + 899105726, + 899391585, + 904177417, + 906329077, + 907353873, + 908382558, + 908995416, + 909575129, + 911755433, + 912926581, + 913778584, + 916434426, + 916692163, + 917125192, + 919501844, + 919591734, + 922716775, + 923731279, + 924634336, + 928586713, + 931732521, + 933613570, + 935449472, + 939723082, + 940855722, + 941049704, + 942562649, + 943023388, + 945105383, + 946617644, + 946633071, + 948180292, + 951782946, + 952849198, + 955757730, + 956047537, + 958558713, + 959766235, + 959830771, + 961573628, + 962033728, + 962503472, + 963511511, + 966610557, + 969252726, + 971539303, + 976151094, + 976328782, + 982340652, + 982849471, + 984571893, + 987676084, + 990138594, + 992508780, + 993393802, + 994398923, + 996700226, + 997549992, + 998846567, + 999381383 + ] + }, + { + "input": [ + -89857565, + -89504577, + -88981237, + -88633790, + -88484665, + -86162239, + -85255996, + -84732925, + -84160106, + -79947632, + -79133785, + -77823048, + -76884040, + -76546503, + -75116701, + -74054816, + -74031659, + -73924264, + -73833091, + -73815309, + -71730202, + -69916060, + -69652509, + -69570684, + -67169047, + -66152989, + -62949689, + -62923686, + -61591325, + -60109517, + -59349539, + -59049311, + -58642942, + -58272773, + -57229064, + -56490420, + -55672253, + -54379885, + -53599884, + -51570051, + -50126954, + -48757957, + -47965519, + -47604890, + -44742637, + -39587624, + -38435374, + -36971280, + -35095939, + -34731634, + -34418657, + -33812784, + -33282221, + -31916488, + -30356753, + -29810256, + -29623895, + -28680232, + -25591020, + -25192964, + -24856097, + -23671180, + -23489475, + -21694277, + -20588299, + -20108223, + -19611673, + -16497307, + -15705627, + -14507140, + -12975972, + -11955270, + -11625428, + -11295164, + -8585629, + -8548748, + -8459969, + -5637966, + -5458513, + -5205596, + -4588803, + -3927921, + -3544411, + -2802984, + -1556548, + 255813, + 520206, + 795188, + 930583, + 2079964, + 2504795, + 3016265, + 3387816, + 5029121, + 7935002, + 10571015, + 11467234, + 12787648, + 14276626, + 14526358, + 16653673, + 18046972, + 18739020, + 18994824, + 19543582, + 20591685, + 21041425, + 21203678, + 21529392, + 21728397, + 21781431, + 25767066, + 26269089, + 29460423, + 30248981, + 31277046, + 31335936, + 31777572, + 32312685, + 34019928, + 37232549, + 37644000, + 39499332, + 39985932, + 40158989, + 42202092, + 44640220, + 45341283, + 45423325, + 47939859, + 47969109, + 48452509, + 49074568, + 52404527, + 55545014, + 55561640, + 56730654, + 56972206, + 57074206, + 58419723, + 58561859, + 62441570, + 63460271, + 63919875, + 64831118, + 65002914, + 66983122, + 67693468, + 71681185, + 72065210, + 77131167, + 79735190, + 80617796, + 82219683, + 82665245, + 83961995, + 85830258, + 89771663, + 89802727, + 90965122, + 91034878, + 91174905, + 92143345, + 92382667, + 93634909, + 93640360, + 93987897, + 94404573, + 94511237, + 94828308, + 94858684, + 95007809, + 96386465, + 96822913, + 97330235, + 97369963, + 98236478, + 98759549, + 99145992, + 99332368, + 100238157, + 101068456, + 101084462, + 103544842, + 104358689, + 104728452, + 105669426, + 105807003, + 106490307, + 106608434, + 106945971, + 108375773, + 109437658, + 109460815, + 109568210, + 109659383, + 109677165, + 110080960, + 111229678, + 111762272, + 111770748, + 111787016, + 113576414, + 113839965, + 113921790, + 116323427, + 117212729, + 117334665, + 117339485, + 118109481, + 118383060, + 118902401, + 120409026, + 120542785, + 120568788, + 120661735, + 120755985, + 121901149, + 122350878, + 123382957, + 123861358, + 124142935, + 124443163, + 124589911, + 124849532, + 125069551, + 125219701, + 126019957, + 126263410, + 126678649, + 127002054, + 127441112, + 127735945, + 127820221, + 129040594, + 129112589, + 129892590, + 129945496, + 130816675, + 131164694, + 131506242, + 131922423, + 133090954, + 133301809, + 133365520, + 134734517, + 135526955, + 135887584, + 136826788, + 138381337, + 138749837, + 139528874, + 140671512, + 143904850, + 144461063, + 144730160, + 145057100, + 145425676, + 146521194, + 147633605, + 148396535, + 148760840, + 149073817, + 149679690, + 150210253, + 151362463, + 151575986, + 153135721, + 153682218, + 153854550, + 153868579, + 154812242, + 155533622, + 156017276, + 156531530, + 156998419, + 157398872, + 157676176, + 157901454, + 158299510, + 158636377, + 158831128, + 159158993, + 159619429, + 159720082, + 159821294, + 160002999, + 161130582, + 161770821, + 161798197, + 162565055, + 162904175, + 163384251, + 163880801, + 166995167, + 167001715, + 167144239, + 167786847, + 168181574, + 168376234, + 168575133, + 168985334, + 169115678, + 169438837, + 169683003, + 170516502, + 170697283, + 170764059, + 171088184, + 171537204, + 171698954, + 171867046, + 172197310, + 173425932, + 173968054, + 174906845, + 174943726, + 175032505, + 175502852, + 176936237, + 176939257, + 177854508, + 178033961, + 178286878, + 178903671, + 179312545, + 179564553, + 179948063, + 180347593, + 180689490, + 181356248, + 181935926, + 182213590, + 183748287, + 184012680, + 184227290, + 184287662, + 184423057, + 185057292, + 185193211, + 185572438, + 185711040, + 185997269, + 186508739, + 186880290, + 187577142, + 187960514, + 188521595, + 188572858, + 190961388, + 191427476, + 192220287, + 193785290, + 194063489, + 194703949, + 194959708, + 196280122, + 197769100, + 197881356, + 197923520, + 197992402, + 198018832, + 198218947, + 200146147, + 201539446, + 202231494, + 202487298, + 203036056, + 203706081, + 203882431, + 204084159, + 204533899, + 204696152, + 204889831, + 205021866, + 205220871, + 205273905, + 206427176, + 206649611, + 206797623, + 207305697, + 207599064, + 208038492, + 208042407, + 209259540, + 209761563, + 209968443, + 212712362, + 212952897, + 213139482, + 213741455, + 214474090, + 214565467, + 214769520, + 214828410, + 215069330, + 215270046, + 215688901, + 215805159, + 216395182, + 217322252, + 217512402, + 218625748, + 219236520, + 219290402, + 220725023, + 220757331, + 221136474, + 221602601, + 221639941, + 222991806, + 223478406, + 223651463, + 224417118, + 225694566, + 226194073, + 226211871, + 227728689, + 228132694, + 228808053, + 228833757, + 228915799, + 228928733, + 229157871, + 230330733, + 230388042, + 231310726, + 231432333, + 231461583, + 231803598, + 231944983, + 231986053, + 232035182, + 232567042, + 235897001, + 238492676, + 239037488, + 239054114, + 239427679, + 240223128, + 240464680, + 240566680, + 241912197, + 242054333, + 242911172, + 243815433, + 244832735, + 245934044, + 246646765, + 246952745, + 246954681, + 247412349, + 248323592, + 248329695, + 248495388, + 248859315, + 250475596, + 250477927, + 251185942, + 252173681, + 253310183, + 254000343, + 255173659, + 255243364, + 255557684, + 256919176, + 257831971, + 259497342, + 260055174, + 260623641, + 262253473, + 262703378, + 263227664, + 263456650, + 264110270, + 264274739, + 265712157, + 266157719, + 267159714, + 267454469, + 269180355, + 269322732, + 269361619, + 269869699, + 270759875, + 273264137, + 273295201, + 273513392, + 273523621, + 274457596, + 274527352, + 274667379, + 274723816, + 274848035, + 275635819, + 275711364, + 275875141, + 277132834, + 277897047, + 278320782, + 278925727, + 279878939, + 280315387, + 280862437, + 280926274, + 282638466, + 283468234, + 283521052, + 283730631, + 284342978, + 284560930, + 284576936, + 285395747, + 285997959, + 286123288, + 288220926, + 288463054, + 288729446, + 289299477, + 289982781, + 290829136, + 292077084, + 293573434, + 294176291, + 294722152, + 295263222, + 295279490, + 295475637, + 295760996, + 295824705, + 297849128, + 298312138, + 299116440, + 300705203, + 300827139, + 301263742, + 301584771, + 301601955, + 301875534, + 301876570, + 302394875, + 302665430, + 302927411, + 303497274, + 303901500, + 304154209, + 304248459, + 305843352, + 307353832, + 307787668, + 308082385, + 308529054, + 308562025, + 309512431, + 310171123, + 310933586, + 311228419, + 312533068, + 313126005, + 313437970, + 314309149, + 314657168, + 314779894, + 314998716, + 315974071, + 316583428, + 316794283, + 317888993, + 318384270, + 320319262, + 320765111, + 321572257, + 321873811, + 322481046, + 322703658, + 322878461, + 323021348, + 324163986, + 326153238, + 326697391, + 327112004, + 327291466, + 327562464, + 327953537, + 328014966, + 328222634, + 328420184, + 328918150, + 330661244, + 331126079, + 332113134, + 333185208, + 333381338, + 333528060, + 334447812, + 334854937, + 335211140, + 335346870, + 335922144, + 336227066, + 337201279, + 337347024, + 337368196, + 337531981, + 338444015, + 339026096, + 339223536, + 339472489, + 339509750, + 340024004, + 340490893, + 340891346, + 341168650, + 341856011, + 342067066, + 342323602, + 342651467, + 343111903, + 343212556, + 344505318, + 344623056, + 345263295, + 346057529, + 346760525, + 347854146, + 348871724, + 349971652, + 350494189, + 350577440, + 350636713, + 351674048, + 351868708, + 352067607, + 352379974, + 352608152, + 352731779, + 352931311, + 353175477, + 354189757, + 354256533, + 354580658, + 354623713, + 355126497, + 355191428, + 356323921, + 356675917, + 356918406, + 357277811, + 357460528, + 357681056, + 358995326, + 359358835, + 360428711, + 360431731, + 360519154, + 360936174, + 361945372, + 362805019, + 363478252, + 363528561, + 363840067, + 364158242, + 364249214, + 364848722, + 365470907, + 365706064, + 366154945, + 366368548, + 367037303, + 367181003, + 367700680, + 367719764, + 368549766, + 368685685, + 369203514, + 369918064, + 370860119, + 370965552, + 371069616, + 371452988, + 371588872, + 372065332, + 372200342, + 372630084, + 373920476, + 374453862, + 375712761, + 376533212, + 377277764, + 377760365, + 378196423, + 379349866, + 379506972, + 380027636, + 380466861, + 381373830, + 381415994, + 381484876, + 381711421, + 382323549, + 386446884, + 387060877, + 387198555, + 387374905, + 387720627, + 388382305, + 389919650, + 390142085, + 390177147, + 390290097, + 390798171, + 391091538, + 391122998, + 391530966, + 391534881, + 391961573, + 393031228, + 393460917, + 393777947, + 394061185, + 395606615, + 396204836, + 396459605, + 396628964, + 396631956, + 397966564, + 398057941, + 398229237, + 398561804, + 399181375, + 399887656, + 400603889, + 400814726, + 401190957, + 401467824, + 401566710, + 401887661, + 402118222, + 402728994, + 402782876, + 403431940, + 404249805, + 404959864, + 405095075, + 405132415, + 406119889, + 406708069, + 407909592, + 409609164, + 409686547, + 409704345, + 409829011, + 410766615, + 411221163, + 412300527, + 412421207, + 412650345, + 413075521, + 413823207, + 413880516, + 414334468, + 414595244, + 414803200, + 415296072, + 415478527, + 415527656, + 417174458, + 418282835, + 418506990, + 418976841, + 420647991, + 421745584, + 421967150, + 421985150, + 422920153, + 423323638, + 423766569, + 423998945, + 425004309, + 425189788, + 425686005, + 426403646, + 426583272, + 427307907, + 428325209, + 428551439, + 430139239, + 430447155, + 431822169, + 432351789, + 432426462, + 432944940, + 433386065, + 433496710, + 433958174, + 433970401, + 435666155, + 436802657, + 436880690, + 437492817, + 438735838, + 439669264, + 440411650, + 440769882, + 441324445, + 441559898, + 441850525, + 442627773, + 442989816, + 443547648, + 445190680, + 445517285, + 445745947, + 446195852, + 446949124, + 446959302, + 447767213, + 448028924, + 448174786, + 449390552, + 450652188, + 450722079, + 451211057, + 452040222, + 452672829, + 452854093, + 453362173, + 454242157, + 454252349, + 455541694, + 455710266, + 456095597, + 456234806, + 456311746, + 457005866, + 457016095, + 458214776, + 458216290, + 458340509, + 458836183, + 459203838, + 459341126, + 460065942, + 460095229, + 460745515, + 460997829, + 461014264, + 461994498, + 462418201, + 463829798, + 464416965, + 464418748, + 466960708, + 467013526, + 467046427, + 467236783, + 467835452, + 467933450, + 468641889, + 468888221, + 469490433, + 469615762, + 469988466, + 470251698, + 471480989, + 471955528, + 472221920, + 473245398, + 473510264, + 474321610, + 474459174, + 475569558, + 476728422, + 477668765, + 478453579, + 478968111, + 479253470, + 479298221, + 479317179, + 481207748, + 481341602, + 481804612, + 482608914, + 482809523, + 483715008, + 484527562, + 484756216, + 485058913, + 485077245, + 485369044, + 485594201, + 485907140, + 486157904, + 486419885, + 486989748, + 488312909, + 488604688, + 489798033, + 491280142, + 491962155, + 492021528, + 493638153, + 495784060, + 495887478, + 495917016, + 496034365, + 496354182, + 496618479, + 497073710, + 497695993, + 497874333, + 498272368, + 499466545, + 501355736, + 501381467, + 501876744, + 502212045, + 503189101, + 504257585, + 505064731, + 505632136, + 505973520, + 506196132, + 506370935, + 507997764, + 508107816, + 509220462, + 509645605, + 509645712, + 510056417, + 510189865, + 510604478, + 510709115, + 510783940, + 511054938, + 511507440, + 511912658, + 514025585, + 514153718, + 514857748, + 515039849, + 515386589, + 515452177, + 515595116, + 515605608, + 516677682, + 516873812, + 517020534, + 517210679, + 517916916, + 517940286, + 518703614, + 518839344, + 519414618, + 519424636, + 519719540, + 520693753, + 520860670, + 520968547, + 521024455, + 521936489, + 522580991, + 522716010, + 522790631, + 522859959, + 522964963, + 525348485, + 525559540, + 527997792, + 528355707, + 528809022, + 529310504, + 529960412, + 529997514, + 530252999, + 530591775, + 531346620, + 532364198, + 532608413, + 533464126, + 534069914, + 535872448, + 536124058, + 536224253, + 537836267, + 538116187, + 538618971, + 539757721, + 539816395, + 540168391, + 540332605, + 540770285, + 540856194, + 541173530, + 541640077, + 542851309, + 543093516, + 543767529, + 544009139, + 544011628, + 544428648, + 544523190, + 545437846, + 545614517, + 546970726, + 547021035, + 547650716, + 547737122, + 547741688, + 547902305, + 548610743, + 548696241, + 548963381, + 549647419, + 549861022, + 550529777, + 550639935, + 550673477, + 551193154, + 551231597, + 551419772, + 552713154, + 553390217, + 553410538, + 553595676, + 553657205, + 554352593, + 554357328, + 554458026, + 555081346, + 555692816, + 556122558, + 556781388, + 557412950, + 558524913, + 559210137, + 560025686, + 560410255, + 561252839, + 561823471, + 562560722, + 562753990, + 562842340, + 562959596, + 562999446, + 563520110, + 563705823, + 563752758, + 563959335, + 564377852, + 565565289, + 565788385, + 565816023, + 566051460, + 566943605, + 568077551, + 568869017, + 569939358, + 570124442, + 570553351, + 571213101, + 573258073, + 573669621, + 573879461, + 574615472, + 575454047, + 575863046, + 576072157, + 576523702, + 577270421, + 577553659, + 578535011, + 579099089, + 579689655, + 579698064, + 579952079, + 580121438, + 580641850, + 581179842, + 581383320, + 581721711, + 582450981, + 582681174, + 584096363, + 584610205, + 584683431, + 584960298, + 585059184, + 585380135, + 586428150, + 586554771, + 586924414, + 587427366, + 588452338, + 589237611, + 589612363, + 589770621, + 590200543, + 590221588, + 590276351, + 591257285, + 593101638, + 593321485, + 593751666, + 594259089, + 594763768, + 596567995, + 596685925, + 597251946, + 597294778, + 597826942, + 598087718, + 598943132, + 600666932, + 601775309, + 601892945, + 601999464, + 602469315, + 603188718, + 604140465, + 604405537, + 604627152, + 604864548, + 605039542, + 605238058, + 605459624, + 606816112, + 607259043, + 607491419, + 608073131, + 608237602, + 608496783, + 608682262, + 609178479, + 609916834, + 609992634, + 610075746, + 610800580, + 611363866, + 611498015, + 612043913, + 612482061, + 613944066, + 615918936, + 615956462, + 616025047, + 616437414, + 616878539, + 616989184, + 617415405, + 617428794, + 617450648, + 617515221, + 618057149, + 619826419, + 620225613, + 620270339, + 620349143, + 620373164, + 620546955, + 621497233, + 621770625, + 622338401, + 622793586, + 623161738, + 624262356, + 625052372, + 625342999, + 625918823, + 626120247, + 627186284, + 627282933, + 628608512, + 628622677, + 628683154, + 629009759, + 629231888, + 629295935, + 630222192, + 630451776, + 631521398, + 631667260, + 632883026, + 633552372, + 634214553, + 634420720, + 634703531, + 635532696, + 636224780, + 636305234, + 636688358, + 637734631, + 638077747, + 638316385, + 638372003, + 639034168, + 639202740, + 639588071, + 639727280, + 639752691, + 639804220, + 640646247, + 640702676, + 641251816, + 641707250, + 642328657, + 642484538, + 642833600, + 643064683, + 643558416, + 643587703, + 643681313, + 644237989, + 644490303, + 644506738, + 645486972, + 645579033, + 645777022, + 646804005, + 647322272, + 647909439, + 648425322, + 650538901, + 650729257, + 651425924, + 651975899, + 652134363, + 652268591, + 653480940, + 653744172, + 654973463, + 656668006, + 656737872, + 657002738, + 657951648, + 658137357, + 658369642, + 658898971, + 659812979, + 660220896, + 661538239, + 661692960, + 661946053, + 662014615, + 662708381, + 662790695, + 664700222, + 664750942, + 665677654, + 666301997, + 667207482, + 668020036, + 668551387, + 668846825, + 669086675, + 669399614, + 669931400, + 670625928, + 670663108, + 671382791, + 671578990, + 671805383, + 672097162, + 673047361, + 673088704, + 673290507, + 675454629, + 675596573, + 675938559, + 677130627, + 678206108, + 679111408, + 679276534, + 679379952, + 679409490, + 679526839, + 679749711, + 679846656, + 680117964, + 680566184, + 681112659, + 681188467, + 681366807, + 682660120, + 682881643, + 684848210, + 685704519, + 686528986, + 686681575, + 686865923, + 687795731, + 688101047, + 689124610, + 689372766, + 690185256, + 691120626, + 691490238, + 691600290, + 691913022, + 692113603, + 692123458, + 692243489, + 692557387, + 692712936, + 693138079, + 693372738, + 693548891, + 694201589, + 696509469, + 697518059, + 697549659, + 698350222, + 698532323, + 698879063, + 698944651, + 699087590, + 699948158, + 699955100, + 700023896, + 700557999, + 700610591, + 700703153, + 700724047, + 701056588, + 701409390, + 701558480, + 702917110, + 703721428, + 704461021, + 705346692, + 705467078, + 705707160, + 706047454, + 706073465, + 706283105, + 706352433, + 707118603, + 708455263, + 709310562, + 709420611, + 711848181, + 712268574, + 712301496, + 712578784, + 712802978, + 713452886, + 713489988, + 713821210, + 714084249, + 714508483, + 715024609, + 715511070, + 715790793, + 716100887, + 716723258, + 717038440, + 718883745, + 719015678, + 719407794, + 719616532, + 719779460, + 719819346, + 721328741, + 723250195, + 723825079, + 724348668, + 725132551, + 726179399, + 726287588, + 726585990, + 727110764, + 727260003, + 727501613, + 728015664, + 728950839, + 729013740, + 729106991, + 729228840, + 729583382, + 729589660, + 730023958, + 730244256, + 730651690, + 730768375, + 731229596, + 731394779, + 731738699, + 731739991, + 732035891, + 732103217, + 732188715, + 732966774, + 734114676, + 734132409, + 734724071, + 734727566, + 734912246, + 735492939, + 735981180, + 736205628, + 736253080, + 736882691, + 737009154, + 737088150, + 737108990, + 737149679, + 737649866, + 737849802, + 738606433, + 738951029, + 739218296, + 739331615, + 739715487, + 740227970, + 740273862, + 740576957, + 741867457, + 742017387, + 742403327, + 742702611, + 743902729, + 744028368, + 745315945, + 746053196, + 746246464, + 746452070, + 747198297, + 747245232, + 747739349, + 747870326, + 748682198, + 749057763, + 749280859, + 749543934, + 750436079, + 750652998, + 750725599, + 751570025, + 752361491, + 753616916, + 753649602, + 755889040, + 756049718, + 756750547, + 757371935, + 757966893, + 758848633, + 759355520, + 759564631, + 760948001, + 761149871, + 761280642, + 762027485, + 762221737, + 763060133, + 763182129, + 763190538, + 763854140, + 764134324, + 764672316, + 764875794, + 765006488, + 765943455, + 765954812, + 765959384, + 765965759, + 766173648, + 766400382, + 768102679, + 768123619, + 768140688, + 769920624, + 770047245, + 770235309, + 770919334, + 770919840, + 772730085, + 772979088, + 773263095, + 773714062, + 773768825, + 774372826, + 774749759, + 775189172, + 775252343, + 775703701, + 776183390, + 777244140, + 777797153, + 778256242, + 778761465, + 779530768, + 779821877, + 780072794, + 780178399, + 780744420, + 780787252, + 782435606, + 782900499, + 783000665, + 783220300, + 785385419, + 786681192, + 787451355, + 787861860, + 787898011, + 788112068, + 788119626, + 788357022, + 788532016, + 788762588, + 788819375, + 789405963, + 791248059, + 791334893, + 791565605, + 791730076, + 793409308, + 793413813, + 793485108, + 793804799, + 794293054, + 794856340, + 794873530, + 794990489, + 795481566, + 795974535, + 796120336, + 796333716, + 797436540, + 797761861, + 798940238, + 799036975, + 799448936, + 799517521, + 800907879, + 800921268, + 801007695, + 801466080, + 801549623, + 802840935, + 803318893, + 803541505, + 803718087, + 803762813, + 803841617, + 804039429, + 804989707, + 805191952, + 805263099, + 805830875, + 805867402, + 806286060, + 806564363, + 806877797, + 806912536, + 808330044, + 809284006, + 809411297, + 809689853, + 809888274, + 810678758, + 810775407, + 811776551, + 812100986, + 812115151, + 812724362, + 812788409, + 813714666, + 815854633, + 816420499, + 816734228, + 817044846, + 817913194, + 818498802, + 818683020, + 819420814, + 819556508, + 819717254, + 819797708, + 819924573, + 820180832, + 820844071, + 821570221, + 821808859, + 821813735, + 821864477, + 823245165, + 824138721, + 824195150, + 824744290, + 825473200, + 825977012, + 826557157, + 826801843, + 827051704, + 827173787, + 827413538, + 827861603, + 828281679, + 828535526, + 829071507, + 829269496, + 830283547, + 830296479, + 831510038, + 831739674, + 831917796, + 832126874, + 832341579, + 832546098, + 835468373, + 835761065, + 836519338, + 837144088, + 837471293, + 838363455, + 838821197, + 839211230, + 840160480, + 840740721, + 841629831, + 841862116, + 842391445, + 842840247, + 843305453, + 845030713, + 845185434, + 845507089, + 846200855, + 847268237, + 848243416, + 849170128, + 849357643, + 849572079, + 851447982, + 852339299, + 853423874, + 853492910, + 853745269, + 854118402, + 854144774, + 854155582, + 854875265, + 855050111, + 855071464, + 856539835, + 856581178, + 856723925, + 858099829, + 858205585, + 858699258, + 858708741, + 859089047, + 859431033, + 860417111, + 861398792, + 861698582, + 861935378, + 862603882, + 863242185, + 863610438, + 864098028, + 864605133, + 865356547, + 866152594, + 866174017, + 866374117, + 866812453, + 868541053, + 868555434, + 870021460, + 870178492, + 870358397, + 871288205, + 871593521, + 872508111, + 872865240, + 873428648, + 873677730, + 874000569, + 874613100, + 875405496, + 875606077, + 875615932, + 875735963, + 876049861, + 876865212, + 878151368, + 878533464, + 879512553, + 879512694, + 879579018, + 880001943, + 881042133, + 881207291, + 881564481, + 882339622, + 883440632, + 883447574, + 883510800, + 883516370, + 884050473, + 884103065, + 884216521, + 884549062, + 885050954, + 885951068, + 887206827, + 887213902, + 887430898, + 887882653, + 887967565, + 888533054, + 888839166, + 888959552, + 889199634, + 889539928, + 890470039, + 890611077, + 890654458, + 891026799, + 891947737, + 892089898, + 892803036, + 892913085, + 893366567, + 895761048, + 896071258, + 897313684, + 897811008, + 898000957, + 898012529, + 898517083, + 899003544, + 899283267, + 900215732, + 900528431, + 900530914, + 901377573, + 902376219, + 902398280, + 902452396, + 902508152, + 902900268, + 903271934, + 903311820, + 903767516, + 904861263, + 905482337, + 905706847, + 905741439, + 906643059, + 907163664, + 909671873, + 909780062, + 910603238, + 912443313, + 912506214, + 912721314, + 913075856, + 913082134, + 913516432, + 913736730, + 914144164, + 914260849, + 915231173, + 915232465, + 915528365, + 916459248, + 917607150, + 918220040, + 918985413, + 919473654, + 919745554, + 920501628, + 920601464, + 921142340, + 922098907, + 922443503, + 922710770, + 922824089, + 923207961, + 923720444, + 924069431, + 925359931, + 925895801, + 927520842, + 931231823, + 932174672, + 934145472, + 934218073, + 937142076, + 939381514, + 939542192, + 941459367, + 942341107, + 944440475, + 944642345, + 944773116, + 945714211, + 946552607, + 947346614, + 948498962, + 949447286, + 949451858, + 949458233, + 949892856, + 951616093, + 951633162, + 953727783, + 954411808, + 956471562, + 957865300, + 958681646, + 958744817, + 959196175, + 959675864, + 961289627, + 962253939, + 963023242, + 963314351, + 963565268, + 966392973, + 966493139, + 966712774, + 970943829, + 971354334, + 971604542, + 972255062, + 972311849, + 972898437, + 974740533, + 974827367, + 976906287, + 977297273, + 978366004, + 978974040, + 979612810, + 979826190, + 981254335, + 982432712, + 982529449, + 984958554, + 986333409, + 987033979, + 988684426, + 989359876, + 990056837, + 990370271, + 990405010, + 991822518, + 992776480, + 993182327, + 993380748, + 995269025, + 999347107, + 999912973, + 1000226702, + 1001991276, + 1002175494, + 1002913288, + 1003048982, + 1003417047, + 1004336545, + 1005306209, + 1008965674, + 1010294317, + 1010544178, + 1010906012, + 1011354077, + 1011774153, + 1012028000, + 1013776021, + 1015002512, + 1015232148, + 1015619348, + 1015834053, + 1016038572, + 1020011812, + 1020636562, + 1020963767, + 1021855929, + 1022313671, + 1022703704, + 1024233195, + 1026332721, + 1030760711, + 1032850117, + 1033064553, + 1034940456, + 1036985384, + 1037237743, + 1037637248, + 1038542585, + 1040216399, + 1041592303, + 1041698059, + 1042191732, + 1042201215, + 1043909585, + 1044891266, + 1045427852, + 1047590502, + 1048849021, + 1049666491, + 1050304927, + 1052033527, + 1052047908, + 1053670966, + 1056000585, + 1056921122, + 1057493043, + 1061643842, + 1062025938, + 1063005027, + 1063005168, + 1063071492, + 1064699765, + 1065056955, + 1065832096, + 1067003274, + 1069443542, + 1070699301, + 1070923372, + 1071375127, + 1071460039, + 1072025528, + 1073962513, + 1074146932, + 1074519273, + 1075582372, + 1076859041, + 1081303482, + 1081505003, + 1084020905, + 1084870047, + 1085890754, + 1085944870, + 1087259990, + 1088353737, + 1088974811, + 1089199321, + 1089233913, + 1090135533, + 1090656138 + ], + "output": [ + 1888672, + 2241660, + 2765000, + 3112447, + 3261572, + 5583998, + 6490241, + 7013312, + 7586131, + 11798605, + 12612452, + 13923189, + 14862197, + 15199734, + 16629536, + 17691421, + 17714578, + 17821973, + 17913146, + 17930928, + 20016035, + 21830177, + 22093728, + 22175553, + 24577190, + 25593248, + 28796548, + 28822551, + 30154912, + 31636720, + 32396698, + 32696926, + 33103295, + 33473464, + 34517173, + 35255817, + 36073984, + 37366352, + 38146353, + 40176186, + 41619283, + 42988280, + 43780718, + 44141347, + 47003600, + 52158613, + 53310863, + 54774957, + 56650298, + 57014603, + 57327580, + 57933453, + 58464016, + 59829749, + 61389484, + 61935981, + 62122342, + 63066005, + 66155217, + 66553273, + 66890140, + 68075057, + 68256762, + 70051960, + 71157938, + 71638014, + 72134564, + 75248930, + 76040610, + 77239097, + 78770265, + 79790967, + 80120809, + 80451073, + 83160608, + 83197489, + 83286268, + 86108271, + 86287724, + 86540641, + 87157434, + 87818316, + 88201826, + 88943253, + 90189689, + 92002050, + 92266443, + 92541425, + 92676820, + 93826201, + 94251032, + 94762502, + 95134053, + 96775358, + 99681239, + 102317252, + 103213471, + 104533885, + 106022863, + 106272595, + 108399910, + 109793209, + 110485257, + 110741061, + 111289819, + 112337922, + 112787662, + 112949915, + 113275629, + 113474634, + 113527668, + 117513303, + 118015326, + 121206660, + 121995218, + 123023283, + 123082173, + 123523809, + 124058922, + 125766165, + 128978786, + 129390237, + 131245569, + 131732169, + 131905226, + 133948329, + 136386457, + 137087520, + 137169562, + 139686096, + 139715346, + 140198746, + 140820805, + 144150764, + 147291251, + 147307877, + 148476891, + 148718443, + 148820443, + 150165960, + 150308096, + 154187807, + 155206508, + 155666112, + 156577355, + 156749151, + 158729359, + 159439705, + 163427422, + 163811447, + 168877404, + 171481427, + 172364033, + 173965920, + 174411482, + 175708232, + 177576495, + 181517900, + 181548964, + 182711359, + 182781115, + 182921142, + 183889582, + 184128904, + 185386597, + 186150810, + 186574545, + 188132702, + 188569150, + 189116200, + 190892229, + 191984394, + 192814693, + 192830699, + 196474689, + 197553240, + 198236544, + 201827197, + 202975915, + 203516985, + 203533253, + 208958966, + 209080902, + 209855718, + 210129297, + 210648638, + 212155263, + 212407972, + 212502222, + 214097115, + 215607595, + 216336148, + 216815788, + 217766194, + 218424886, + 219187349, + 219482182, + 220786831, + 221691733, + 222562912, + 222910931, + 223252479, + 224837191, + 225048046, + 228573025, + 230127574, + 231275111, + 232417749, + 236207300, + 236476397, + 237171913, + 239379842, + 243108700, + 245600787, + 247279859, + 247763513, + 248277767, + 248744656, + 249145109, + 249422413, + 250577365, + 250905230, + 251365666, + 251466319, + 252876819, + 253517058, + 254311292, + 258747952, + 258890476, + 259927811, + 260122471, + 260321370, + 260861915, + 261185074, + 261429240, + 262443520, + 262510296, + 262834421, + 263445191, + 265172169, + 265714291, + 267249089, + 268682474, + 268685494, + 271058782, + 272093830, + 273102485, + 273959827, + 275973527, + 276803529, + 276939448, + 277457277, + 279323379, + 279706751, + 280319095, + 282707625, + 283966524, + 285531527, + 286450186, + 289627593, + 289669757, + 289738639, + 289965184, + 295452318, + 295628668, + 296636068, + 298173413, + 298395848, + 298543860, + 299051934, + 299345301, + 299784729, + 299788644, + 301714680, + 304458599, + 304885719, + 306220327, + 306311704, + 306815567, + 307435138, + 308141419, + 309068489, + 310371985, + 310982757, + 311036639, + 312503568, + 313348838, + 313386178, + 316163355, + 317940310, + 317958108, + 319474926, + 320554290, + 320674970, + 320904108, + 322076970, + 322134279, + 323056963, + 323549835, + 323732290, + 323781419, + 330238913, + 331173916, + 334657409, + 335561670, + 336578972, + 338393002, + 338700918, + 340075932, + 340605552, + 342224164, + 343919918, + 345056420, + 345746580, + 346989601, + 348665413, + 349578208, + 351243579, + 351801411, + 353999710, + 354449615, + 355202887, + 356020976, + 358905951, + 360926592, + 361107856, + 361615936, + 362506112, + 365259629, + 365269858, + 366470053, + 366594272, + 367457601, + 370671964, + 372672511, + 375214471, + 375267289, + 376089215, + 377141984, + 377744196, + 377869525, + 380209291, + 380475683, + 382575373, + 383823321, + 385922528, + 387221874, + 387507233, + 387570942, + 389595365, + 390058375, + 390862677, + 393009979, + 393331008, + 393622807, + 394411667, + 394673648, + 395243511, + 399533905, + 400275291, + 404872242, + 406526131, + 407720308, + 409635230, + 410130507, + 412511348, + 413318494, + 414227283, + 414449895, + 414624698, + 417899475, + 418443628, + 418858241, + 419037703, + 419308701, + 419761203, + 420166421, + 422407481, + 423859371, + 424931445, + 425127575, + 425274297, + 426194049, + 426957377, + 427093107, + 427668381, + 427973303, + 428947516, + 429114433, + 429278218, + 430190252, + 430969773, + 431218726, + 433602248, + 433813303, + 436251555, + 438506762, + 439600383, + 440617961, + 441717889, + 442323677, + 444126211, + 444478016, + 446369950, + 446872734, + 448070158, + 448422154, + 449024048, + 449427293, + 451105072, + 452265391, + 452682411, + 453691609, + 455224489, + 455274798, + 455904479, + 455995451, + 457217144, + 457901182, + 458114785, + 458783540, + 458927240, + 459446917, + 461664301, + 462606356, + 462711789, + 463335109, + 463946579, + 464376321, + 465666713, + 468279449, + 469506602, + 471096103, + 471253209, + 471773873, + 472213098, + 474069786, + 478193121, + 478807114, + 479466864, + 481923384, + 482869235, + 483707810, + 484777465, + 485524184, + 485807422, + 487352852, + 488205842, + 488375201, + 489975474, + 492350126, + 492937194, + 493214061, + 493312947, + 493633898, + 495178177, + 496706101, + 497866126, + 498454306, + 501355401, + 501575248, + 502512852, + 504821758, + 506080705, + 506341481, + 508920695, + 510029072, + 510253227, + 510723078, + 512394228, + 513491821, + 513713387, + 515069875, + 515512806, + 515745182, + 516750546, + 516936025, + 517432242, + 518329509, + 520297676, + 524172699, + 524691177, + 525132302, + 525242947, + 525704411, + 528626927, + 531415501, + 532516119, + 533306135, + 533596762, + 534374010, + 536936917, + 537263522, + 538705539, + 539775161, + 539921023, + 541136789, + 542468316, + 542957294, + 543786459, + 545988394, + 547287931, + 547456503, + 547841834, + 547981043, + 548057983, + 549961013, + 550582420, + 551087363, + 551812179, + 551841466, + 552491752, + 552744066, + 552760501, + 553740735, + 555576035, + 556163202, + 558792664, + 558983020, + 559679687, + 560388126, + 561734703, + 561997935, + 563227226, + 564991635, + 565256501, + 566205411, + 568474659, + 570199816, + 571044458, + 572953985, + 574555760, + 575461245, + 576273799, + 576805150, + 577340438, + 577653377, + 580059146, + 580350925, + 581544270, + 583708392, + 585384390, + 587530297, + 587633715, + 587663253, + 587780602, + 588100419, + 588819947, + 589442230, + 589620570, + 593101973, + 593958282, + 594935338, + 597378373, + 599744001, + 599854053, + 600966699, + 601391842, + 601802654, + 602455352, + 605771822, + 606603985, + 606786086, + 607132826, + 607198414, + 607341353, + 608956916, + 609663153, + 611170873, + 612714784, + 614327228, + 614536868, + 614606196, + 620101944, + 620555259, + 621056741, + 621706649, + 621743751, + 622338012, + 624354650, + 627870295, + 629582504, + 631503958, + 632078842, + 632602431, + 633386314, + 634839753, + 635513766, + 635755376, + 636269427, + 637360754, + 639483359, + 639648542, + 640356980, + 640442478, + 642386172, + 642977834, + 643166009, + 644459391, + 645136454, + 645341913, + 645403442, + 646103565, + 648527625, + 650271150, + 650956374, + 652156492, + 653569708, + 654306959, + 654500227, + 654705833, + 655452060, + 655498995, + 656124089, + 657311526, + 657534622, + 657797697, + 658689842, + 659823788, + 660615254, + 661870679, + 665004310, + 665625698, + 667609283, + 667818394, + 670281248, + 671435892, + 671444301, + 672388087, + 672926079, + 673129557, + 674197218, + 674427411, + 676356442, + 678174387, + 678301008, + 679173603, + 680983848, + 681516858, + 681967825, + 682022588, + 683003522, + 685497903, + 686510005, + 688432162, + 688998183, + 689041015, + 690689369, + 693639182, + 694934955, + 696151774, + 696373389, + 696610785, + 696785779, + 699819368, + 699983839, + 701663071, + 701738871, + 702546817, + 703110103, + 703244252, + 704228298, + 705690303, + 707702699, + 707771284, + 709161642, + 709175031, + 709261458, + 709803386, + 711572656, + 711971850, + 712016576, + 712095380, + 712293192, + 713243470, + 713516862, + 714084638, + 714539823, + 717665060, + 718932521, + 719029170, + 720354749, + 720368914, + 720978125, + 721042172, + 721968429, + 725298609, + 726166957, + 727971017, + 728051471, + 728434595, + 729823984, + 730062622, + 730118240, + 731498928, + 732392484, + 732448913, + 732998053, + 734230775, + 734810920, + 735427550, + 737325270, + 737523259, + 738550242, + 740171559, + 743722136, + 744014828, + 748414243, + 749883594, + 750115879, + 750645208, + 751559216, + 753284476, + 753439197, + 753760852, + 754454618, + 756497179, + 757423891, + 760593062, + 761677637, + 762372165, + 762409345, + 763129028, + 763325227, + 764793598, + 764834941, + 767342810, + 767684796, + 769952345, + 770857645, + 771495948, + 771864201, + 772858896, + 774406357, + 774627880, + 778275223, + 778612160, + 779541968, + 779847284, + 781119003, + 781931493, + 782866863, + 783659259, + 783859840, + 783869695, + 783989726, + 784303624, + 785118975, + 788255706, + 789295896, + 791694395, + 791701337, + 791770133, + 792304236, + 792356828, + 792470284, + 792802825, + 793304717, + 795467665, + 797092929, + 797213315, + 797453397, + 797793691, + 798864840, + 800201500, + 801056799, + 801166848, + 804014811, + 804325021, + 805567447, + 806254720, + 806770846, + 807257307, + 807537030, + 808469495, + 808784677, + 810629982, + 810761915, + 811154031, + 811525697, + 811565583, + 817925636, + 818033825, + 818857001, + 820697076, + 820759977, + 820975077, + 821329619, + 821335897, + 821770195, + 821990493, + 822397927, + 822514612, + 823484936, + 823486228, + 823782128, + 824713011, + 825860913, + 826473803, + 827239176, + 827727417, + 827999317, + 828755391, + 828855227, + 829396103, + 830352670, + 830697266, + 830964533, + 831077852, + 831461724, + 831974207, + 832323194, + 833613694, + 834149564, + 835774605, + 839485586, + 840428435, + 842399235, + 842471836, + 845395839, + 847635277, + 847795955, + 849713130, + 850594870, + 852694238, + 852896108, + 853026879, + 853967974, + 854806370, + 855600377, + 856752725, + 857701049, + 857705621, + 857711996, + 858146619, + 859869856, + 859886925, + 861981546, + 862665571, + 864725325, + 866119063, + 866935409, + 866998580, + 867449938, + 867929627, + 869543390, + 870507702, + 871277005, + 871568114, + 871819031, + 874646736, + 874746902, + 874966537, + 879197592, + 879608097, + 879858305, + 880508825, + 880565612, + 881152200, + 882994296, + 883081130, + 885160050, + 885551036, + 886619767, + 887227803, + 887866573, + 888079953, + 889508098, + 890686475, + 890783212, + 893212317, + 894587172, + 895287742, + 896938189, + 897613639, + 898310600, + 898624034, + 898658773, + 900076281, + 901030243, + 901436090, + 901634511, + 903522788, + 907600870, + 908166736, + 908480465, + 910245039, + 910429257, + 911167051, + 911302745, + 911670810, + 912590308, + 913559972, + 917219437, + 918548080, + 918797941, + 919159775, + 919607840, + 920027916, + 920281763, + 922029784, + 923256275, + 923485911, + 923873111, + 924087816, + 924292335, + 928265575, + 928890325, + 929217530, + 930109692, + 930567434, + 930957467, + 932486958, + 934586484, + 939014474, + 941103880, + 941318316, + 943194219, + 945239147, + 945491506, + 945891011, + 946796348, + 948470162, + 949846066, + 949951822, + 950445495, + 950454978, + 952163348, + 953145029, + 953681615, + 955844265, + 957102784, + 957920254, + 958558690, + 960287290, + 960301671, + 961924729, + 964254348, + 965174885, + 965746806, + 969897605, + 970279701, + 971258790, + 971258931, + 971325255, + 972953528, + 973310718, + 974085859, + 975257037, + 977697305, + 978953064, + 979177135, + 979628890, + 979713802, + 980279291, + 982216276, + 982400695, + 982773036, + 983836135, + 985112804, + 989557245, + 989758766, + 992274668, + 993123810, + 994144517, + 994198633, + 995513753, + 996607500, + 997228574, + 997453084, + 997487676, + 998389296, + 998909901 + ] + }, + { + "input": [ + -169723011, + -163136145, + -144901832, + -121475156, + -116430554, + -66095572, + -47538726, + -47362027, + -279135, + 43777046, + 177685883, + 184272749, + 202507062, + 206007920, + 207153424, + 207922847, + 219819243, + 225933738, + 230978340, + 241149801, + 252051102, + 281313322, + 283803691, + 287131756, + 299870168, + 300046867, + 347129759, + 353149753, + 356605476, + 375825558, + 391185940, + 407844152, + 420532554, + 421300211, + 424440729, + 426224633, + 432871173, + 434199634, + 440725064, + 446709052, + 467025184, + 515892324, + 553416814, + 554562318, + 555331741, + 567228137, + 570641144, + 585171285, + 588558695, + 599459996, + 604051299, + 623102174, + 631212585, + 634540650, + 636771292, + 700558647, + 704014370, + 723234452, + 724111281, + 755253046, + 767941448, + 768709105, + 771849623, + 773633527, + 780280067, + 781608528, + 788133958, + 794117946, + 802958517, + 810498626, + 814434078, + 863301218, + 918050038, + 932580179, + 951460193, + 970511068, + 984180186, + 1071520175, + 1150367411, + 1157907520 + ], + "output": [ + 3981436, + 10568302, + 28802615, + 52229291, + 57273893, + 107608875, + 126165721, + 126342420, + 173425312, + 217481493, + 379712367, + 380857871, + 381627294, + 393523690, + 414854248, + 425755549, + 457508138, + 460836203, + 526854200, + 530309923, + 549530005, + 581548599, + 594237001, + 595004658, + 598145176, + 599929080, + 606575620, + 607904081, + 614429511, + 620413499, + 640729631, + 689596771, + 744345591, + 758875732, + 777755746, + 796806621, + 810475739, + 897815728, + 976662964, + 984203073 + ] + }, + { + "input": [ + -365175509, + -362832106, + -351946473, + -343943026, + -343726813, + -343719171, + -340153476, + -338166506, + -337858269, + -330134475, + -325709819, + -318152752, + -309873898, + -307184805, + -305735037, + -304234688, + -301528308, + -291406517, + -290778596, + -289516247, + -288985763, + -287711623, + -284604434, + -282023361, + -278343593, + -276724942, + -276516559, + -275608929, + -268900300, + -268743132, + -267859621, + -266253479, + -265962227, + -262326905, + -260784029, + -259746658, + -256933183, + -253522417, + -253154374, + -251373833, + -239206083, + -235604291, + -229053469, + -226140040, + -224445345, + -223573953, + -222155730, + -217765652, + -217512759, + -216228948, + -213429597, + -211480943, + -209646925, + -207236308, + -205921356, + -205612634, + -203191651, + -197832696, + -195039119, + -194159373, + -194115565, + -193440521, + -191919749, + -188232243, + -186521149, + -180315183, + -169418570, + -168949249, + -160140733, + -159182021, + -154836239, + -147952831, + -147032364, + -146166146, + -145418733, + -143876417, + -137823063, + -127555729, + -118298361, + -117816961, + -116622625, + -113149970, + -106824980, + -106422152, + -101444152, + -92782643, + -89391149, + -88596051, + -88098654, + -87839103, + -86104589, + -83819699, + -83783796, + -83485735, + -79829100, + -79419302, + -75344286, + -74201719, + -73702517, + -68404743, + -67624226, + -67517558, + -58456821, + -54401196, + -49311791, + -47840881, + -41748961, + -38554516, + -38414207, + -38328697, + -36715732, + -36389668, + -34249456, + -33419167, + -31750793, + -30507752, + -26727321, + -26619075, + -26256775, + -22510320, + -20885596, + -14140930, + -14074343, + -11728001, + -4949989, + -4722535, + -2574083, + -1857018, + 3870416, + 8385214, + 10323463, + 10915554, + 17238925, + 24975484, + 28286091, + 28514128, + 33617978, + 37825323, + 49899775, + 51301032, + 53742661, + 53775742, + 70658971, + 71139132, + 71231333, + 72739328, + 83333453, + 83584634, + 88424106, + 103175696, + 108440637, + 108469281, + 108539891, + 114095821, + 119316128, + 120065036, + 122627881, + 123639765, + 126662980, + 131202692, + 133994191, + 142041448, + 147803851, + 149783374, + 151247128, + 153080878, + 157574515, + 160428814, + 160737298, + 176541167, + 180281127, + 187343546, + 191226135, + 192327507, + 196873186, + 208009715, + 212295137, + 215398679, + 217140508, + 217179547, + 217244747, + 220405873, + 220781454, + 221141690, + 221725390, + 222054039, + 222663072, + 224893320, + 225446984, + 231793473, + 232128706, + 232829006, + 239783395, + 240556566, + 240850505, + 242227923, + 246268611, + 246515274, + 251584650, + 252833878, + 253412239, + 254556593, + 258134360, + 258224611, + 264387265, + 269672938, + 270268664, + 273556424, + 280716943, + 281588127, + 283429043, + 291749503, + 297475481, + 300115319, + 301575617, + 305160860, + 309094880, + 312731900, + 313819811, + 315549915, + 317900123, + 319754436, + 323715119, + 325142954, + 328109711, + 330046460, + 333583495, + 333662327, + 334523977, + 335077854, + 339127104, + 339221880, + 341852809, + 358397550, + 359456368, + 366028331, + 368371734, + 368481153, + 372844810, + 374262384, + 379257367, + 383025693, + 383547838, + 387260814, + 387477027, + 387484669, + 388481320, + 388767584, + 390071439, + 391050364, + 393037334, + 393345571, + 393349269, + 395019765, + 397417261, + 398897726, + 398957758, + 401069365, + 402057608, + 405494021, + 410641301, + 413051088, + 414618690, + 421329942, + 423144542, + 424019035, + 425468803, + 426969152, + 427789182, + 428607148, + 429675532, + 430565653, + 433871237, + 434695625, + 435536316, + 439797323, + 440425244, + 441687593, + 442218077, + 443492217, + 446599406, + 447604393, + 449180479, + 452860247, + 454478898, + 454687281, + 455296243, + 455594911, + 456352829, + 456887506, + 457892402, + 458697372, + 458929913, + 462303540, + 462384417, + 462460708, + 463344219, + 463879148, + 464308560, + 464950361, + 465241613, + 467488308, + 468876935, + 470419811, + 471457182, + 473324079, + 474270657, + 475875610, + 477681423, + 478049466, + 479102444, + 479830007, + 485111010, + 490616350, + 491997757, + 492177622, + 493651165, + 495599549, + 495925617, + 502150371, + 505063800, + 506758495, + 507629887, + 509048110, + 511462728, + 512086956, + 513438188, + 513691081, + 514974892, + 516443881, + 517774243, + 518721603, + 519722897, + 521556915, + 523967532, + 524565147, + 525282484, + 525483079, + 525591206, + 527409249, + 528012189, + 529251291, + 533371144, + 535680364, + 536164721, + 537044467, + 537088275, + 537763319, + 538840694, + 539284091, + 542971597, + 544682691, + 545467696, + 550888657, + 553718664, + 560768802, + 561785270, + 562254591, + 564537985, + 565943547, + 566345699, + 568728212, + 571063107, + 572021819, + 572500489, + 575718328, + 576367601, + 577412285, + 578755635, + 580120141, + 583251009, + 584171476, + 585037694, + 585785107, + 587327423, + 588151516, + 589733016, + 589796049, + 589857585, + 591092917, + 592102237, + 593380777, + 595475783, + 596733107, + 598397393, + 603648111, + 606623782, + 608585422, + 612905479, + 613155944, + 613386879, + 614581215, + 618053870, + 618384214, + 619225786, + 620275862, + 620933543, + 622136731, + 622257205, + 623654196, + 624378860, + 624579477, + 624781688, + 627414649, + 627562531, + 627677066, + 628800956, + 629759688, + 638421197, + 641812691, + 642607789, + 643105186, + 643364737, + 645099251, + 647384141, + 647420044, + 647718105, + 651374740, + 651784538, + 655859554, + 657002121, + 657501323, + 662799097, + 663579614, + 663686282, + 672747019, + 676802644, + 681892049, + 683362959, + 689454879, + 692649324, + 692789633, + 692875143, + 694488108, + 694814172, + 696954384, + 697784673, + 699453047, + 700696088, + 704476519, + 704584765, + 704947065, + 708693520, + 710318244, + 717062910, + 717129497, + 719475839, + 726253851, + 726481305, + 728629757, + 729346822, + 735074256, + 739589054, + 741527303, + 742119394, + 748442765, + 756179324, + 759489931, + 759717968, + 764821818, + 769029163, + 781103615, + 782504872, + 784946501, + 784979582, + 801862811, + 802342972, + 802435173, + 803943168, + 814537293, + 814788474, + 819627946, + 834379536, + 839644477, + 839673121, + 839743731, + 845299661, + 850519968, + 851268876, + 853831721, + 854843605, + 857866820, + 862406532, + 865198031, + 873245288, + 879007691, + 880987214, + 882450968, + 884284718, + 888778355, + 891632654, + 891941138, + 907745007, + 911484967, + 918547386, + 922429975, + 923531347, + 928077026, + 939213555, + 943498977, + 946602519, + 948344348, + 948383387, + 948448587, + 951609713, + 951985294, + 952345530, + 952929230, + 953257879, + 953866912, + 956097160, + 956650824, + 962997313, + 963332546, + 964032846, + 970987235, + 971760406, + 972054345, + 973431763, + 977472451, + 977719114, + 982788490, + 984037718, + 984616079, + 985760433, + 989338200, + 989428451, + 995591105, + 1000876778, + 1001472504, + 1004760264, + 1011920783, + 1012791967, + 1014632883, + 1022953343, + 1028679321, + 1031319159, + 1032779457, + 1036364700, + 1040298720, + 1043935740, + 1045023651, + 1046753755, + 1049103963, + 1050958276, + 1054918959, + 1056346794, + 1059313551, + 1061250300, + 1064787335, + 1064866167, + 1065727817, + 1066281694, + 1070330944, + 1070425720, + 1073056649, + 1089601390, + 1090660208, + 1099684993, + 1104048650, + 1105466224, + 1114229533, + 1114751678, + 1119685160, + 1119971424, + 1121275279, + 1124553109, + 1126223605, + 1128621101, + 1130101566, + 1130161598, + 1133261448, + 1141845141, + 1145822530, + 1154348382, + 1158993022, + 1159810988, + 1161769493, + 1165075077, + 1165899465, + 1166740156, + 1178808233, + 1186500083, + 1187556669, + 1188091346, + 1189096242, + 1189901212, + 1190133753, + 1193588257, + 1195082988, + 1195512400, + 1198692148, + 1204527919, + 1207079450, + 1210306284, + 1216314850, + 1221820190, + 1223381462, + 1224855005, + 1227129457, + 1242666568, + 1243290796, + 1247647721, + 1249925443, + 1255768987, + 1256686919, + 1258613089, + 1260455131, + 1266884204, + 1270044534, + 1276671536, + 1284922504, + 1291972642, + 1295741825, + 1297147387, + 1297549539, + 1299932052, + 1303704329, + 1306922168, + 1308616125, + 1309959475, + 1311323981, + 1319355356, + 1320936856, + 1320999889, + 1321061425, + 1322296757, + 1323306077, + 1326679623, + 1327936947, + 1329601233, + 1337827622, + 1339789262, + 1344359784, + 1349588054, + 1350429626, + 1351479702, + 1352137383, + 1353340571, + 1353461045, + 1354858036, + 1355783317, + 1358618489, + 1358766371, + 1358880906, + 1360004796 + ], + "output": [ + 426411, + 2769814, + 13655447, + 21658894, + 21875107, + 21882749, + 25448444, + 27435414, + 27743651, + 35467445, + 39892101, + 47449168, + 55728022, + 58417115, + 59866883, + 61367232, + 64073612, + 74195403, + 74823324, + 76085673, + 76616157, + 77890297, + 80997486, + 83578559, + 87258327, + 88876978, + 89085361, + 89992991, + 96701620, + 96858788, + 97742299, + 99348441, + 99639693, + 103275015, + 104817891, + 105855262, + 108668737, + 112079503, + 112447546, + 114228087, + 126395837, + 129997629, + 136548451, + 139461880, + 141156575, + 142027967, + 143446190, + 147836268, + 148089161, + 149372972, + 152172323, + 154120977, + 155954995, + 158365612, + 159680564, + 159989286, + 162410269, + 167769224, + 170562801, + 171442547, + 171486355, + 172161399, + 173682171, + 177369677, + 179080771, + 185286737, + 196183350, + 196652671, + 205461187, + 206419899, + 210765681, + 217649089, + 218569556, + 219435774, + 220183187, + 221725503, + 227778857, + 238046191, + 247303559, + 247784959, + 248979295, + 252451950, + 258776940, + 259179768, + 264157768, + 272819277, + 276210771, + 277005869, + 277503266, + 277762817, + 279497331, + 281782221, + 281818124, + 282116185, + 285772820, + 286182618, + 290257634, + 291400201, + 291899403, + 297197177, + 297977694, + 298084362, + 307145099, + 311200724, + 316290129, + 317761039, + 323852959, + 327047404, + 327187713, + 327273223, + 328886188, + 329212252, + 331352464, + 332182753, + 333851127, + 335094168, + 338874599, + 338982845, + 339345145, + 343091600, + 344716324, + 351460990, + 351527577, + 353873919, + 360651931, + 360879385, + 363027837, + 363744902, + 369472336, + 373987134, + 375925383, + 376517474, + 382840845, + 390577404, + 393888011, + 394116048, + 399219898, + 403427243, + 415501695, + 416902952, + 419344581, + 419377662, + 436260891, + 436741052, + 436833253, + 438341248, + 448935373, + 449186554, + 454026026, + 468777616, + 474042557, + 474071201, + 474141811, + 479697741, + 484918048, + 485666956, + 488229801, + 489241685, + 492264900, + 496804612, + 499596111, + 507643368, + 513405771, + 515385294, + 516849048, + 518682798, + 523176435, + 526030734, + 526339218, + 542143087, + 545883047, + 552945466, + 556828055, + 557929427, + 562475106, + 573611635, + 577897057, + 581000599, + 582742428, + 582781467, + 582846667, + 586007793, + 586383374, + 586743610, + 587327310, + 587655959, + 588264992, + 590495240, + 591048904, + 597395393, + 597730626, + 598430926, + 605385315, + 606158486, + 606452425, + 607829843, + 611870531, + 612117194, + 617186570, + 618435798, + 619014159, + 620158513, + 623736280, + 623826531, + 629989185, + 635274858, + 635870584, + 639158344, + 646318863, + 647190047, + 649030963, + 657351423, + 663077401, + 665717239, + 667177537, + 670762780, + 674696800, + 678333820, + 679421731, + 681151835, + 683502043, + 685356356, + 689317039, + 690744874, + 693711631, + 695648380, + 699185415, + 699264247, + 700125897, + 700679774, + 704729024, + 704823800, + 707454729, + 723999470, + 725058288, + 734083073, + 738446730, + 739864304, + 748627613, + 749149758, + 754083240, + 754369504, + 755673359, + 758951189, + 760621685, + 763019181, + 764499646, + 764559678, + 767659528, + 776243221, + 780220610, + 788746462, + 793391102, + 794209068, + 796167573, + 799473157, + 800297545, + 801138236, + 813206313, + 820898163, + 821954749, + 822489426, + 823494322, + 824299292, + 824531833, + 827986337, + 829481068, + 829910480, + 833090228, + 838925999, + 841477530, + 844704364, + 850712930, + 856218270, + 857779542, + 859253085, + 861527537, + 877064648, + 877688876, + 882045801, + 884323523, + 890167067, + 891084999, + 893011169, + 894853211, + 901282284, + 904442614, + 911069616, + 919320584, + 926370722, + 930139905, + 931545467, + 931947619, + 934330132, + 938102409, + 941320248, + 943014205, + 944357555, + 945722061, + 953753436, + 955334936, + 955397969, + 955459505, + 956694837, + 957704157, + 961077703, + 962335027, + 963999313, + 972225702, + 974187342, + 978757864, + 983986134, + 984827706, + 985877782, + 986535463, + 987738651, + 987859125, + 989256116, + 990181397, + 993016569, + 993164451, + 993278986, + 994402876 + ] + }, + { + "input": [ + 179556, + 1529459, + 2233924, + 3583827, + 6925301, + 7556207, + 8042636, + 8979669, + 9005419, + 9610575, + 9805430, + 10097004, + 10275238, + 11007711, + 11059787, + 11332315, + 11859798, + 12322768, + 12329606, + 13023678, + 13062079, + 13250240, + 13386683, + 14078095, + 14377136, + 15078046, + 15304608, + 16132463, + 19374700, + 20038351, + 20383501, + 21429068, + 21847704, + 22092719, + 22437869, + 23902072, + 26044496, + 28098864, + 30301459, + 32355827, + 32397611, + 34451979, + 56639566, + 56739873, + 58693934, + 58794241, + 71809060, + 73863428, + 79949906, + 82004274, + 83201796, + 85256164, + 91399832, + 93454200, + 96796694, + 98851062, + 102554576, + 104608944, + 109419696, + 111474064, + 114775908, + 116825139, + 116830276, + 118879507, + 119669462, + 120560898, + 121723830, + 122615266, + 124992462, + 127046830, + 132750518, + 133037758, + 133269159, + 134511220, + 134804886, + 135092126, + 135323527, + 136565588, + 138422736, + 140477104, + 141661991, + 143716359, + 147143103, + 149197471, + 149849465, + 151903833, + 163736311, + 165790679, + 176272021, + 178160256, + 178326389, + 180214624, + 180849015, + 182903383, + 189810643, + 191865011, + 192202503, + 194256871, + 194464109, + 196188542, + 196518477, + 198242910, + 198761454, + 199240782, + 200815822, + 201295150, + 204201952, + 206256320, + 207771299, + 209230811, + 209825667, + 211285179, + 212371513, + 214425881, + 215068523, + 217122891, + 224632969, + 226345162, + 226405865, + 226687337, + 228399530, + 228460233, + 229624719, + 231679087, + 234504203, + 236558571, + 236617976, + 237510470, + 238672344, + 239564838, + 240395991, + 242450359, + 242712518, + 244766886, + 248464469, + 250518837, + 254403556, + 256457924, + 256782303, + 258836671, + 262878209, + 264739376, + 264932577, + 266207743, + 266793744, + 267430305, + 268262111, + 269484673, + 272114603, + 274168971, + 282576139, + 283177290, + 284465044, + 284630507, + 285231658, + 286101910, + 286519412, + 287226335, + 288156278, + 289280703, + 289287338, + 289482926, + 291341706, + 291537294, + 294798585, + 295471631, + 296696540, + 296852953, + 297525999, + 297614772, + 298750908, + 299669140, + 301611248, + 302841834, + 303665616, + 304896202, + 306748269, + 308802637, + 313366495, + 314849952, + 315420863, + 316022856, + 316904320, + 317456324, + 318077224, + 319510692, + 319904973, + 320057524, + 321268947, + 321959341, + 322111892, + 323323315, + 331005164, + 333059532, + 336202644, + 337404198, + 338257012, + 339458566, + 341095207, + 341930576, + 343149575, + 343606904, + 343984944, + 344541853, + 344950935, + 345661272, + 346596221, + 346655380, + 346846565, + 347005303, + 348709748, + 348900933, + 354095244, + 355415045, + 356149612, + 357469413, + 367494519, + 367615890, + 369504702, + 369548887, + 369670258, + 371546829, + 371559070, + 373601197, + 375228905, + 377103375, + 377283273, + 377499936, + 379157743, + 379554304, + 386827139, + 388881507, + 393277543, + 393906285, + 395331911, + 395960653, + 398115929, + 399844158, + 400170297, + 401898526, + 403870227, + 403882098, + 405924595, + 405936466, + 435442381, + 437496749, + 440731333, + 442785701, + 443001539, + 445055907, + 447583436, + 449637804, + 468138856, + 468583775, + 468910598, + 470193224, + 470638143, + 470964966, + 473373799, + 473422718, + 475428167, + 475477086, + 475524188, + 475612159, + 477578556, + 477666527, + 486327212, + 486809868, + 487382856, + 488381580, + 488864236, + 489437224, + 494013384, + 494520320, + 496067752, + 496574688, + 496886667, + 498941035, + 499067504, + 501121872, + 501259367, + 502248696, + 503313735, + 504303064, + 505857137, + 507911505, + 508417734, + 510472102, + 513478445, + 515532813, + 517871095, + 518921989, + 519925463, + 520219418, + 520976357, + 522273786, + 524251165, + 526305533, + 526529271, + 527472864, + 528583639, + 529527232, + 531745426, + 532408874, + 533276836, + 533799794, + 534463242, + 535331204, + 536245800, + 536297028, + 538300168, + 538351396, + 545102991, + 547157359, + 547475140, + 549075898, + 549165528, + 549529508, + 551130266, + 551219896, + 553454267, + 553457683, + 554411528, + 555508635, + 555512051, + 556465896, + 562293032, + 564347400, + 570701073, + 571373487, + 572755441, + 572883490, + 572887447, + 573078153, + 573427855, + 574937858, + 574941815, + 575132521, + 584062506, + 585508501, + 586116874, + 587562869, + 589597958, + 589754845, + 590223460, + 591652326, + 591809213, + 592277828, + 600108502, + 600944360, + 601689595, + 602162870, + 602998728, + 603743963, + 612959390, + 613373532, + 615013758, + 615427900, + 618260916, + 620315284, + 623314730, + 624202045, + 625035611, + 625219411, + 625369098, + 625724001, + 625978246, + 626256413, + 627089979, + 627106203, + 627273779, + 627778369, + 628032614, + 629160571, + 631285384, + 631597816, + 633073840, + 633339752, + 633652184, + 635128208, + 635248847, + 637303215, + 640267844, + 642322212, + 642683494, + 644397575, + 644737862, + 646451943, + 647256456, + 649310824, + 661830113, + 663884481, + 665046578, + 667100946, + 668203189, + 670257557, + 670710290, + 672263158, + 672764658, + 674237760, + 674317526, + 676292128, + 683322468, + 685376836, + 687002647, + 689057015, + 690257414, + 690722368, + 692311782, + 692776736, + 697114377, + 697488453, + 698599863, + 699168745, + 699542821, + 700654231, + 704303348, + 704575985, + 705296685, + 705526294, + 706357716, + 706630353, + 707351053, + 707580662, + 725247842, + 727167207, + 727302210, + 729221575, + 730062512, + 732116880, + 733065228, + 733772388, + 734461023, + 735119596, + 735826756, + 736515391, + 741275928, + 743330296, + 744591392, + 744970259, + 746366523, + 746645760, + 747024627, + 748420891, + 752266992, + 753557368, + 754321360, + 754985530, + 755255235, + 755611736, + 757039898, + 757309603, + 759783778, + 761681420, + 761838146, + 761958943, + 762272997, + 763735788, + 764013311, + 764327365, + 764921963, + 765061253, + 766976331, + 767115621, + 767742321, + 768163615, + 768655678, + 769796689, + 770217983, + 770710046, + 771370145, + 772050968, + 773424513, + 774105336, + 776802265, + 777241144, + 778856633, + 779295512, + 779858564, + 780233534, + 781912932, + 782287902, + 791573965, + 793628333, + 795289827, + 795625433, + 797344195, + 797679801, + 824599177, + 826653545, + 829512995, + 831567363, + 832120324, + 832261198, + 833627603, + 834174692, + 834315566, + 835681971, + 836204697, + 838259065, + 845593196, + 845749869, + 846095295, + 847647564, + 847804237, + 848149663, + 850720017, + 852295524, + 852774385, + 854349892, + 854918608, + 856972976, + 858566640, + 858987634, + 859266438, + 859639254, + 860621008, + 861042002, + 861320806, + 861693622, + 862936357, + 864990725, + 866758935, + 868672245, + 868813303, + 870726613, + 872895294, + 874949662, + 875875803, + 877930171, + 880405342, + 882459710, + 889361986, + 889956239, + 890310948, + 891416354, + 892010607, + 892365316, + 898437213, + 900491581, + 914247064, + 916301432, + 918705319, + 920699252, + 920759687, + 922753620, + 924749712, + 925210429, + 926030433, + 926804080, + 927264797, + 928084801, + 928669154, + 929429797, + 929974399, + 930723522, + 931484165, + 932028767, + 932814771, + 934869139, + 937024180, + 939078548, + 941361305, + 943415673, + 947191337, + 948309521, + 949245705, + 950363889, + 951645139, + 953699507, + 954568241, + 956027726, + 956467205, + 956622609, + 958082094, + 958521573, + 966761152, + 968815520, + 981034607, + 982201732, + 983088975, + 984256100, + 985503233, + 987557601, + 989893693, + 989921267, + 991184083, + 991948061, + 991975635, + 992118072, + 993238451, + 994172440, + 995901229, + 997955597, + 998305698, + 1000360066 + ], + "output": [ + 1206740, + 2556643, + 7952485, + 8583391, + 9069820, + 10032603, + 10832614, + 11302422, + 12034895, + 12359499, + 13349952, + 14050862, + 14277424, + 15105279, + 20401884, + 21065535, + 21410685, + 22874888, + 27071680, + 31328643, + 33424795, + 57666750, + 57767057, + 72836244, + 80977090, + 84228980, + 92427016, + 97823878, + 103581760, + 110446880, + 115803092, + 117852323, + 120696646, + 121588082, + 126019646, + 133777702, + 134064942, + 134296343, + 135538404, + 139449920, + 142689175, + 148170287, + 150876649, + 164763495, + 177299205, + 179187440, + 181876199, + 190837827, + 193229687, + 195491293, + 197215726, + 199788638, + 200267966, + 205229136, + 208798483, + 210257995, + 213398697, + 216095707, + 225660153, + 227372346, + 227433049, + 230651903, + 235531387, + 237645160, + 238537654, + 241423175, + 243739702, + 249491653, + 255430740, + 257809487, + 263905393, + 265766560, + 267234927, + 268457489, + 273141787, + 283603323, + 284204474, + 285492228, + 287129094, + 288253519, + 290314522, + 290510110, + 295825769, + 296498815, + 297723724, + 298641956, + 302638432, + 303869018, + 307775453, + 314393679, + 315877136, + 317050040, + 318483508, + 320932157, + 321084708, + 322296131, + 332032348, + 337229828, + 338431382, + 342122391, + 342957760, + 344634088, + 345569037, + 345978119, + 347682564, + 347873749, + 355122428, + 356442229, + 368521703, + 368643074, + 370531886, + 372574013, + 376256089, + 378130559, + 378527120, + 387854323, + 394304727, + 394933469, + 399143113, + 400871342, + 404897411, + 404909282, + 436469565, + 441758517, + 444028723, + 448610620, + 469166040, + 469610959, + 469937782, + 474400983, + 474449902, + 476551372, + 476639343, + 487354396, + 487837052, + 488410040, + 495040568, + 495547504, + 497913851, + 500094688, + 502286551, + 503275880, + 506884321, + 509444918, + 514505629, + 518898279, + 519949173, + 521246602, + 525278349, + 527556455, + 528500048, + 532772610, + 533436058, + 534304020, + 537272984, + 537324212, + 546130175, + 548502324, + 550103082, + 550192712, + 554481451, + 554484867, + 555438712, + 563320216, + 571728257, + 572400671, + 573910674, + 573914631, + 574105337, + 585089690, + 586535685, + 590625142, + 590782029, + 591250644, + 601135686, + 601971544, + 602716779, + 613986574, + 614400716, + 619288100, + 624341914, + 625229229, + 626062795, + 626246595, + 626751185, + 627005430, + 628133387, + 632312568, + 632625000, + 634101024, + 636276031, + 641295028, + 643710678, + 645424759, + 648283640, + 662857297, + 666073762, + 669230373, + 671737474, + 673290342, + 675264944, + 684349652, + 688029831, + 691284598, + 691749552, + 698141561, + 698515637, + 699627047, + 705330532, + 705603169, + 706323869, + 706553478, + 726275026, + 728194391, + 731089696, + 734092412, + 734799572, + 735488207, + 742303112, + 745618576, + 745997443, + 747393707, + 753294176, + 754584552, + 756012714, + 756282419, + 760810962, + 762708604, + 762986127, + 763300181, + 765949147, + 766088437, + 768769505, + 769190799, + 769682862, + 772397329, + 773078152, + 777829449, + 778268328, + 780885748, + 781260718, + 792601149, + 796317011, + 796652617, + 825626361, + 830540179, + 833147508, + 833288382, + 834654787, + 837231881, + 846620380, + 846777053, + 847122479, + 851747201, + 853322708, + 855945792, + 859593824, + 860014818, + 860293622, + 860666438, + 863963541, + 867786119, + 869699429, + 873922478, + 876902987, + 881432526, + 890389170, + 890983423, + 891338132, + 899464397, + 915274248, + 919732503, + 921726436, + 925776896, + 926237613, + 927057617, + 929696338, + 930456981, + 931001583, + 933841955, + 938051364, + 942388489, + 948218521, + 949336705, + 952672323, + 955595425, + 957054910, + 957494389, + 967788336, + 982061791, + 983228916, + 986530417, + 990920877, + 990948451, + 992211267, + 993145256, + 996928413, + 999332882 + ] + }, + { + "input": [ + -560661308, + -559479777, + -558394534, + -557675642, + -555244577, + -551042926, + -550904730, + -547023118, + -546164519, + -544990660, + -542963827, + -541045195, + -539877050, + -537529952, + -535526381, + -530802140, + -530296831, + -530191599, + -528485926, + -527264317, + -527130468, + -526363224, + -526217854, + -524774709, + -521845326, + -521805466, + -520578952, + -519399216, + -518778537, + -516477166, + -515104923, + -512137095, + -510984086, + -510921528, + -510883622, + -509490732, + -507580554, + -504926916, + -502887150, + -499963537, + -499817992, + -499417521, + -497058200, + -494690348, + -493997773, + -493306251, + -489792038, + -488837380, + -485997677, + -485120889, + -481899646, + -479216180, + -479188312, + -478318985, + -477888969, + -476636946, + -473750449, + -473436695, + -473382164, + -473310256, + -473181671, + -472318453, + -471500299, + -470664983, + -468594347, + -468310370, + -465222515, + -465152960, + -464716448, + -462599808, + -461739918, + -461410762, + -460496931, + -459960691, + -459819064, + -459283235, + -457712616, + -456904532, + -456148857, + -455064009, + -453941008, + -450969785, + -449108225, + -448042447, + -446423227, + -446218064, + -446205502, + -445932615, + -445599723, + -444474691, + -444040707, + -443746987, + -441903474, + -441318958, + -437062229, + -436814947, + -433547645, + -433419281, + -433178984, + -431698490, + -431381646, + -430117507, + -427954169, + -427164069, + -426462084, + -426243640, + -426136016, + -422014406, + -421732839, + -418951503, + -416780173, + -416155125, + -414441821, + -414146073, + -408293264, + -406727017, + -406243732, + -405993592, + -404674143, + -404321525, + -404033115, + -403700266, + -402164130, + -400482157, + -399351877, + -398539413, + -398511605, + -398402816, + -396546594, + -396496796, + -394789627, + -393827929, + -392975126, + -388875237, + -388849047, + -388065033, + -386903615, + -382010886, + -380663257, + -378579960, + -378307725, + -375805049, + -375417803, + -374454955, + -368735648, + -366923569, + -366902604, + -366696611, + -366277676, + -365817005, + -365221025, + -364778038, + -362949884, + -362516796, + -359081623, + -358762879, + -356685804, + -356436099, + -352607548, + -352601109, + -352157765, + -351764350, + -350501938, + -349680454, + -347758147, + -340420305, + -337445281, + -335619419, + -334691324, + -334518701, + -331627209, + -331103268, + -328543244, + -327160213, + -322326687, + -321969631, + -321780406, + -321609545, + -321527628, + -320664037, + -320468694, + -318979781, + -316164571, + -315704051, + -314928520, + -312330707, + -304795323, + -302793472, + -299864550, + -299257561, + -298569499, + -295872595, + -295584560, + -292925995, + -292801318, + -291441883, + -290151579, + -287898966, + -287898850, + -286383930, + -283242236, + -280128465, + -279947215, + -278331274, + -278267547, + -277491428, + -270791949, + -268391414, + -267981698, + -263158862, + -261653729, + -261583728, + -260661257, + -259248260, + -258931704, + -257996738, + -257546874, + -254744582, + -254476828, + -251812185, + -248223077, + -248195101, + -247229216, + -246488165, + -244844091, + -244220345, + -243470878, + -242819007, + -242583896, + -240458508, + -240061737, + -238000377, + -236328556, + -235927476, + -235913873, + -235227743, + -233972404, + -232093176, + -230299648, + -229314913, + -227688439, + -227271599, + -226205652, + -225691812, + -224005620, + -223176521, + -221748842, + -218431235, + -218304288, + -218051302, + -215283481, + -211283021, + -210969485, + -210763604, + -210032470, + -208131160, + -207211442, + -204734297, + -203962572, + -203286294, + -202771935, + -201925945, + -198892356, + -197148689, + -196518082, + -196095722, + -195279576, + -193170516, + -189836421, + -189730728, + -188451932, + -187880521, + -182673788, + -182052786, + -179887659, + -177765097, + -175682552, + -173174698, + -171271979, + -169943246, + -169215884, + -168888659, + -168193024, + -166678746, + -166040102, + -163894346, + -161864688, + -159968985, + -158915441, + -156739615, + -154265695, + -153905990, + -153760864, + -151538278, + -150568831, + -149569426, + -147903296, + -146906019, + -146838524, + -144064978, + -142983184, + -141693370, + -140819833, + -139815087, + -137200741, + -136447025, + -136084920, + -135938220, + -135730471, + -134141038, + -133539655, + -133358788, + -125095598, + -124961504, + -124298624, + -123289109, + -122355512, + -121121470, + -120553994, + -120162301, + -116913949, + -116765106, + -114066446, + -113616908, + -113422576, + -112909147, + -111584829, + -111271073, + -109371012, + -106290879, + -105073413, + -104860321, + -104704138, + -104529612, + -102984668, + -102522191, + -100678032, + -100139591, + -96970093, + -96114695, + -95131591, + -94716218, + -93845459, + -93420981, + -90233037, + -90042295, + -88107245, + -87484938, + -86148288, + -84758145, + -80197761, + -78091550, + -72353251, + -70955665, + -70048592, + -68790848, + -68449726, + -68196749, + -66052206, + -63822311, + -63583007, + -63564446, + -63529900, + -62784328, + -58120240, + -57753525, + -53552552, + -53211701, + -52539089, + -51416801, + -50402282, + -45161392, + -44902601, + -44366193, + -42778825, + -40665377, + -39078656, + -35946747, + -34809639, + -34582970, + -33494221, + -32633101, + -31889558, + -31414596, + -31348997, + -31158348, + -30242487, + -27607048, + -27343282, + -26745362, + -25932626, + -25880575, + -25006916, + -20864241, + -20671113, + -20332147, + -19563409, + -17800888, + -17471254, + -16815008, + -12881186, + -11998160, + -11995380, + -11561422, + -8640064, + -7311661, + -5044315, + -3109209, + -2844461, + -1825872, + -1264588, + -1009977, + -939076, + -587594, + 1306488, + 1682833, + 2852155, + 3641123, + 6071165, + 9244644, + 10961944, + 11437436, + 12094646, + 14382940, + 15812436, + 16683880, + 18303853, + 21560858, + 23444739, + 24005008, + 24497226, + 29835269, + 33570054, + 33845565, + 34903095, + 35791943, + 36103581, + 38011908, + 38955471, + 40180642, + 40611669, + 42990241, + 48695843, + 49892778, + 51294052, + 51863974, + 52054273, + 54205719, + 54858044, + 55143877, + 63168819, + 63412026, + 63489464, + 65350268, + 65577860, + 65774781, + 66540874, + 69094217, + 69309699, + 69461421, + 72226754, + 72653115, + 76055721, + 79194302, + 80032597, + 88495009, + 90010346, + 96029114, + 96039723, + 99189553, + 101653639, + 102144810, + 103183566, + 104296997, + 106992356, + 108670358, + 110649509, + 110718013, + 111998132, + 120127089, + 120982926, + 121308426, + 122306061, + 123716108, + 124709234, + 126175044, + 126608239, + 128603597, + 130548413, + 131069173, + 131250252, + 132167665, + 134699406, + 134716384, + 135733736, + 136258142, + 138211882, + 138950437, + 140490833, + 141317408, + 142980727, + 143268325, + 143619757, + 145566140, + 145602101, + 146522801, + 147360025, + 148688181, + 153325632, + 157243189, + 158208928, + 160998170, + 161988891, + 162148263, + 163204084, + 163465565, + 163975909, + 164146404, + 165698111, + 166774152, + 169875352, + 173398118, + 175098840, + 175466809, + 176478919, + 177510321, + 179009622, + 179061061, + 179877227, + 180994714, + 181855615, + 186296767, + 187046453, + 187254992, + 193110064, + 197561288, + 199002104, + 199073650, + 206477627, + 206690465, + 207776721, + 209258023, + 212096690, + 214940557, + 215964217, + 216401609, + 217268775, + 217380438, + 219698243, + 223924123, + 224869634, + 226201619, + 226519774, + 227363544, + 227471485, + 232050090, + 233278870, + 233290521, + 234043655, + 235554974, + 235941539, + 236965843, + 237613685, + 237855280, + 237981668, + 240331340, + 241877444, + 243943480, + 244902306, + 247168871, + 248082682, + 248596799, + 249443730, + 249484418, + 251711549, + 252179744, + 252416392, + 252505448, + 252993151, + 253096865, + 257418605, + 265322261, + 265710015, + 267364245, + 268747148, + 268977318, + 269002094, + 274170113, + 274770987, + 274809627, + 277601880, + 283429640, + 284594367, + 287206950, + 287598676, + 287762193, + 289761597, + 295179044, + 295257716, + 303436862, + 306019537, + 306043382, + 307045084, + 307825530, + 309056925, + 309440252, + 309510895, + 310356188, + 310724601, + 315129310, + 316992431, + 318219210, + 319189092, + 321310538, + 321901860, + 322909903, + 324140058, + 324312131, + 324827701, + 324911343, + 324940774, + 326987651, + 328579615, + 328589281, + 330002607, + 333187577, + 339100339, + 339473630, + 340139165, + 340726829, + 341632181, + 343809982, + 345735023, + 350226876, + 352583727, + 355866700, + 356049521, + 356125195, + 356179102, + 358602972, + 360856646, + 364423614, + 364523461, + 368608079, + 369141224, + 369760912, + 371035397, + 374052143, + 374984078, + 378916805, + 379591849, + 380426122, + 380865461, + 381907449, + 382735174, + 383623743, + 384551548, + 392226002, + 392954254, + 393466774, + 394264680, + 401663867, + 403218934, + 404281708, + 405122423, + 405352659, + 406339240, + 407998613, + 408102737, + 408619073, + 409426977, + 412805638, + 415568706, + 418219161, + 418829570, + 424616333, + 428168990, + 428911606, + 430960847, + 431915026, + 432683442, + 433415225, + 437304585, + 438402530, + 562056624, + 563238155, + 564323398, + 565042290, + 567473355, + 571675006, + 571813202, + 575694814, + 576553413, + 577727272, + 579754105, + 581672737, + 582840882, + 585187980, + 587191551, + 591915792, + 592421101, + 592526333, + 594232006, + 595453615, + 595587464, + 596354708, + 596500078, + 597943223, + 600872606, + 600912466, + 602138980, + 603318716, + 603939395, + 606240766, + 607613009, + 610580837, + 611733846, + 611796404, + 611834310, + 613227200, + 615137378, + 617791016, + 619830782, + 622754395, + 622899940, + 623300411, + 625659732, + 628027584, + 628720159, + 629411681, + 632925894, + 633880552, + 636720255, + 637597043, + 640818286, + 643501752, + 643529620, + 644398947, + 644828963, + 646080986, + 648967483, + 649281237, + 649335768, + 649407676, + 649536261, + 650399479, + 651217633, + 652052949, + 654123585, + 654407562, + 657495417, + 657564972, + 658001484, + 660118124, + 660978014, + 661307170, + 662221001, + 662757241, + 662898868, + 663434697, + 665005316, + 665813400, + 666569075, + 667653923, + 668776924, + 671748147, + 673609707, + 674675485, + 676294705, + 676499868, + 676512430, + 676785317, + 677118209, + 678243241, + 678677225, + 678970945, + 680814458, + 681398974, + 685655703, + 685902985, + 689170287, + 689298651, + 689538948, + 691019442, + 691336286, + 692600425, + 694763763, + 695553863, + 696255848, + 696474292, + 696581916, + 700703526, + 700985093, + 703766429, + 705937759, + 706562807, + 708276111, + 708571859, + 714424668, + 715990915, + 716474200, + 716724340, + 718043789, + 718396407, + 718684817, + 719017666, + 720553802, + 722235775, + 723366055, + 724178519, + 724206327, + 724315116, + 726171338, + 726221136, + 727928305, + 728890003, + 729742806, + 733842695, + 733868885, + 734652899, + 735814317, + 740707046, + 742054675, + 744137972, + 744410207, + 746912883, + 747300129, + 748262977, + 753982284, + 755794363, + 755815328, + 756021321, + 756440256, + 756900927, + 757496907, + 757939894, + 759768048, + 760201136, + 763636309, + 763955053, + 766032128, + 766281833, + 770110384, + 770116823, + 770560167, + 770953582, + 772215994, + 773037478, + 774959785, + 782297627, + 785272651, + 787098513, + 788026608, + 788199231, + 791090723, + 791614664, + 794174688, + 795557719, + 800391245, + 800748301, + 800937526, + 801108387, + 801190304, + 802053895, + 802249238, + 803738151, + 806553361, + 807013881, + 807789412, + 810387225, + 817922609, + 819924460, + 822853382, + 823460371, + 824148433, + 826845337, + 827133372, + 829791937, + 829916614, + 831276049, + 832566353, + 834818966, + 834819082, + 836334002, + 839475696, + 842589467, + 842770717, + 844386658, + 844450385, + 845226504, + 851925983, + 854326518, + 854736234, + 859559070, + 861064203, + 861134204, + 862056675, + 863469672, + 863786228, + 864721194, + 865171058, + 867973350, + 868241104, + 870905747, + 874494855, + 874522831, + 875488716, + 876229767, + 877873841, + 878497587, + 879247054, + 879898925, + 880134036, + 882259424, + 882656195, + 884717555, + 886389376, + 886790456, + 886804059, + 887490189, + 888745528, + 890624756, + 892418284, + 893403019, + 895029493, + 895446333, + 896512280, + 897026120, + 898712312, + 899541411, + 900969090, + 904286697, + 904413644, + 904666630, + 907434451, + 911434911, + 911748447, + 911954328, + 912685462, + 914586772, + 915506490, + 917983635, + 918755360, + 919431638, + 919945997, + 920791987, + 923825576, + 925569243, + 926199850, + 926622210, + 927438356, + 929547416, + 932881511, + 932987204, + 934266000, + 934837411, + 940044144, + 940665146, + 942830273, + 944952835, + 947035380, + 949543234, + 951445953, + 952774686, + 953502048, + 953829273, + 954524908, + 956039186, + 956677830, + 958823586, + 960853244, + 962748947, + 963802491, + 965978317, + 968452237, + 968811942, + 968957068, + 971179654, + 972149101, + 973148506, + 974814636, + 975811913, + 975879408, + 978652954, + 979734748, + 981024562, + 981898099, + 982902845, + 985517191, + 986270907, + 986633012, + 986779712, + 986987461, + 988576894, + 989178277, + 989359144, + 997622334, + 997756428, + 998419308, + 999428823, + 1000362420, + 1001596462, + 1002163938, + 1002555631, + 1005803983, + 1005952826, + 1008651486, + 1009101024, + 1009295356, + 1009808785, + 1011133103, + 1011446859, + 1013346920, + 1016427053, + 1017644519, + 1017857611, + 1018013794, + 1018188320, + 1019733264, + 1020195741, + 1022039900, + 1022578341, + 1025747839, + 1026603237, + 1027586341, + 1028001714, + 1028872473, + 1029296951, + 1032484895, + 1032675637, + 1034610687, + 1035232994, + 1036569644, + 1037959787, + 1042520171, + 1044626382, + 1050364681, + 1051762267, + 1052669340, + 1053927084, + 1054268206, + 1054521183, + 1056665726, + 1058895621, + 1059134925, + 1059153486, + 1059188032, + 1059933604, + 1064597692, + 1064964407, + 1069165380, + 1069506231, + 1070178843, + 1071301131, + 1072315650, + 1077556540, + 1077815331, + 1078351739, + 1079939107, + 1082052555, + 1083639276, + 1086771185, + 1087908293, + 1088134962, + 1089223711, + 1090084831, + 1090828374, + 1091303336, + 1091368935, + 1091559584, + 1092475445, + 1095110884, + 1095374650, + 1095972570, + 1096785306, + 1096837357, + 1097711016, + 1101853691, + 1102046819, + 1102385785, + 1103154523, + 1104917044, + 1105246678, + 1105902924, + 1109836746, + 1110719772, + 1110722552, + 1111156510, + 1114077868, + 1115406271, + 1117673617, + 1119608723, + 1119873471, + 1120892060, + 1121453344, + 1121707955, + 1121778856, + 1122130338, + 1124024420, + 1124400765, + 1125570087, + 1126359055, + 1128789097, + 1131962576, + 1133679876, + 1134155368, + 1134812578, + 1137100872, + 1138530368, + 1139401812, + 1141021785, + 1144278790, + 1146162671, + 1146722940, + 1147215158, + 1152553201, + 1156287986, + 1156563497, + 1157621027, + 1158509875, + 1158821513, + 1160729840, + 1161673403, + 1162898574, + 1163329601, + 1165708173, + 1171413775, + 1172610710, + 1174011984, + 1174581906, + 1174772205, + 1176923651, + 1177575976, + 1177861809, + 1185886751, + 1186129958, + 1186207396, + 1188068200, + 1188295792, + 1188492713, + 1189258806, + 1191812149, + 1192027631, + 1192179353, + 1194944686, + 1195371047, + 1198773653, + 1201912234, + 1202750529, + 1211212941, + 1212728278, + 1218747046, + 1218757655, + 1221907485, + 1224371571, + 1224862742, + 1225901498, + 1227014929, + 1229710288, + 1231388290, + 1233367441, + 1233435945, + 1234716064, + 1242845021, + 1243700858, + 1244026358, + 1245023993, + 1246434040, + 1247427166, + 1248892976, + 1249326171, + 1251321529, + 1253266345, + 1253787105, + 1253968184, + 1254885597, + 1257417338, + 1257434316, + 1258451668, + 1258976074, + 1260929814, + 1261668369, + 1263208765, + 1264035340, + 1265698659, + 1265986257, + 1266337689, + 1268284072, + 1268320033, + 1269240733, + 1270077957, + 1271406113, + 1276043564, + 1279961121, + 1280926860, + 1283716102, + 1284706823, + 1284866195, + 1285922016, + 1286183497, + 1286693841, + 1286864336, + 1288416043, + 1289492084, + 1292593284, + 1296116050, + 1297816772, + 1298184741, + 1299196851, + 1300228253, + 1301727554, + 1301778993, + 1302595159, + 1303712646, + 1304573547, + 1309014699, + 1309764385, + 1309972924, + 1315827996, + 1320279220, + 1321720036, + 1321791582, + 1329195559, + 1329408397, + 1330494653, + 1331975955, + 1334814622, + 1337658489, + 1338682149, + 1339119541, + 1339986707, + 1340098370, + 1342416175, + 1346642055, + 1347587566, + 1348919551, + 1349237706, + 1350081476, + 1350189417, + 1354768022, + 1355996802, + 1356008453, + 1356761587, + 1358272906, + 1358659471, + 1359683775, + 1360331617, + 1360573212, + 1360699600, + 1363049272, + 1364595376, + 1366661412, + 1367620238, + 1369886803, + 1370800614, + 1371314731, + 1372161662, + 1372202350, + 1374429481, + 1374897676, + 1375134324, + 1375223380, + 1375711083, + 1375814797, + 1380136537, + 1388040193, + 1388427947, + 1390082177, + 1391465080, + 1391695250, + 1391720026, + 1396888045, + 1397488919, + 1397527559, + 1400319812, + 1406147572, + 1407312299, + 1409924882, + 1410316608, + 1410480125, + 1412479529, + 1417896976, + 1417975648, + 1426154794, + 1428737469, + 1428761314, + 1429763016, + 1430543462, + 1431774857, + 1432158184, + 1432228827, + 1433074120, + 1433442533, + 1437847242, + 1439710363, + 1440937142, + 1441907024, + 1444028470, + 1444619792, + 1445627835, + 1446857990, + 1447030063, + 1447545633, + 1447629275, + 1447658706, + 1449705583, + 1451297547, + 1451307213, + 1452720539, + 1455905509, + 1461818271, + 1462191562, + 1462857097, + 1463444761, + 1464350113, + 1466527914, + 1468452955, + 1472944808, + 1475301659, + 1478584632, + 1478767453, + 1478843127, + 1478897034, + 1481320904, + 1483574578, + 1487141546, + 1487241393, + 1491326011, + 1491859156, + 1492478844, + 1493753329, + 1496770075, + 1497702010, + 1501634737, + 1502309781, + 1503144054, + 1503583393, + 1504625381, + 1505453106, + 1506341675, + 1507269480, + 1514943934, + 1515672186, + 1516184706, + 1516982612, + 1524381799, + 1525936866, + 1526999640, + 1527840355, + 1528070591, + 1529057172, + 1530716545, + 1530820669, + 1531337005, + 1532144909, + 1535523570, + 1538286638, + 1540937093, + 1541547502, + 1547334265, + 1550886922, + 1551629538, + 1553678779, + 1554632958, + 1555401374, + 1556133157, + 1560022517, + 1561120462 + ], + "output": [ + 697658, + 1879189, + 2964432, + 3683324, + 6114389, + 10316040, + 10454236, + 14335848, + 15194447, + 16368306, + 18395139, + 20313771, + 21481916, + 23829014, + 25832585, + 30556826, + 31062135, + 31167367, + 32873040, + 34094649, + 34228498, + 34995742, + 35141112, + 36584257, + 39513640, + 39553500, + 40780014, + 41959750, + 42580429, + 44881800, + 46254043, + 49221871, + 50374880, + 50437438, + 50475344, + 51868234, + 53778412, + 56432050, + 58471816, + 61395429, + 61540974, + 61941445, + 64300766, + 66668618, + 67361193, + 68052715, + 71566928, + 72521586, + 75361289, + 76238077, + 79459320, + 82142786, + 82170654, + 83039981, + 83469997, + 84722020, + 87608517, + 87922271, + 87976802, + 88048710, + 88177295, + 89040513, + 89858667, + 90693983, + 92764619, + 93048596, + 96136451, + 96206006, + 96642518, + 98759158, + 99619048, + 99948204, + 100862035, + 101398275, + 101539902, + 102075731, + 103646350, + 104454434, + 105210109, + 106294957, + 107417958, + 110389181, + 112250741, + 113316519, + 114935739, + 115140902, + 115153464, + 115426351, + 115759243, + 116884275, + 117318259, + 117611979, + 119455492, + 120040008, + 124296737, + 124544019, + 127811321, + 127939685, + 128179982, + 129660476, + 129977320, + 131241459, + 133404797, + 134194897, + 134896882, + 135115326, + 135222950, + 139344560, + 139626127, + 142407463, + 144578793, + 145203841, + 146917145, + 147212893, + 153065702, + 154631949, + 155115234, + 155365374, + 156684823, + 157037441, + 157325851, + 157658700, + 159194836, + 160876809, + 162007089, + 162819553, + 162847361, + 162956150, + 164812372, + 164862170, + 166569339, + 167531037, + 168383840, + 172483729, + 172509919, + 173293933, + 174455351, + 179348080, + 180695709, + 182779006, + 183051241, + 185553917, + 185941163, + 186904011, + 192623318, + 194435397, + 194456362, + 194662355, + 195081290, + 195541961, + 196137941, + 196580928, + 198409082, + 198842170, + 202277343, + 202596087, + 204673162, + 204922867, + 208751418, + 208757857, + 209201201, + 209594616, + 210857028, + 211678512, + 213600819, + 220938661, + 223913685, + 225739547, + 226667642, + 226840265, + 229731757, + 230255698, + 232815722, + 234198753, + 239032279, + 239389335, + 239578560, + 239749421, + 239831338, + 240694929, + 240890272, + 242379185, + 245194395, + 245654915, + 246430446, + 249028259, + 256563643, + 258565494, + 261494416, + 262101405, + 262789467, + 265486371, + 265774406, + 268432971, + 268557648, + 269917083, + 271207387, + 273460000, + 273460116, + 274975036, + 278116730, + 281230501, + 281411751, + 283027692, + 283091419, + 283867538, + 290567017, + 292967552, + 293377268, + 298200104, + 299705237, + 299775238, + 300697709, + 302110706, + 302427262, + 303362228, + 303812092, + 306614384, + 306882138, + 309546781, + 313135889, + 313163865, + 314129750, + 314870801, + 316514875, + 317138621, + 317888088, + 318539959, + 318775070, + 320900458, + 321297229, + 323358589, + 325030410, + 325431490, + 325445093, + 326131223, + 327386562, + 329265790, + 331059318, + 332044053, + 333670527, + 334087367, + 335153314, + 335667154, + 337353346, + 338182445, + 339610124, + 342927731, + 343054678, + 343307664, + 346075485, + 350075945, + 350389481, + 350595362, + 351326496, + 353227806, + 354147524, + 356624669, + 357396394, + 358072672, + 358587031, + 359433021, + 362466610, + 364210277, + 364840884, + 365263244, + 366079390, + 368188450, + 371522545, + 371628238, + 372907034, + 373478445, + 378685178, + 379306180, + 381471307, + 383593869, + 385676414, + 388184268, + 390086987, + 391415720, + 392143082, + 392470307, + 393165942, + 394680220, + 395318864, + 397464620, + 399494278, + 401389981, + 402443525, + 404619351, + 407093271, + 407452976, + 407598102, + 409820688, + 410790135, + 411789540, + 413455670, + 414452947, + 414520442, + 417293988, + 418375782, + 419665596, + 420539133, + 421543879, + 424158225, + 424911941, + 425274046, + 425420746, + 425628495, + 427217928, + 427819311, + 428000178, + 436263368, + 436397462, + 437060342, + 438069857, + 439003454, + 440237496, + 440804972, + 441196665, + 444445017, + 444593860, + 447292520, + 447742058, + 447936390, + 448449819, + 449774137, + 450087893, + 451987954, + 455068087, + 456285553, + 456498645, + 456654828, + 456829354, + 458374298, + 458836775, + 460680934, + 461219375, + 464388873, + 465244271, + 466227375, + 466642748, + 467513507, + 467937985, + 471125929, + 471316671, + 473251721, + 473874028, + 475210678, + 476600821, + 481161205, + 483267416, + 489005715, + 490403301, + 491310374, + 492568118, + 492909240, + 493162217, + 495306760, + 497536655, + 497775959, + 497794520, + 497829066, + 498574638, + 503238726, + 503605441, + 507806414, + 508147265, + 508819877, + 509942165, + 510956684, + 516197574, + 516456365, + 516992773, + 518580141, + 520693589, + 522280310, + 525412219, + 526549327, + 526775996, + 527864745, + 528725865, + 529469408, + 529944370, + 530009969, + 530200618, + 531116479, + 533751918, + 534015684, + 534613604, + 535426340, + 535478391, + 536352050, + 540494725, + 540687853, + 541026819, + 541795557, + 543558078, + 543887712, + 544543958, + 548477780, + 549360806, + 549363586, + 549797544, + 552718902, + 554047305, + 556314651, + 558249757, + 558514505, + 559533094, + 560094378, + 560348989, + 560419890, + 560771372, + 562665454, + 563041799, + 564211121, + 565000089, + 567430131, + 570603610, + 572320910, + 572796402, + 573453612, + 575741906, + 577171402, + 578042846, + 579662819, + 582919824, + 584803705, + 585363974, + 585856192, + 591194235, + 594929020, + 595204531, + 596262061, + 597150909, + 597462547, + 599370874, + 600314437, + 601539608, + 601970635, + 604349207, + 610054809, + 611251744, + 612653018, + 613222940, + 613413239, + 615564685, + 616217010, + 616502843, + 624527785, + 624770992, + 624848430, + 626709234, + 626936826, + 627133747, + 627899840, + 630453183, + 630668665, + 630820387, + 633585720, + 634012081, + 637414687, + 640553268, + 641391563, + 649853975, + 651369312, + 657388080, + 657398689, + 660548519, + 663012605, + 663503776, + 664542532, + 665655963, + 668351322, + 670029324, + 672008475, + 672076979, + 673357098, + 681486055, + 682341892, + 682667392, + 683665027, + 685075074, + 686068200, + 687534010, + 687967205, + 689962563, + 691907379, + 692428139, + 692609218, + 693526631, + 696058372, + 696075350, + 697092702, + 697617108, + 699570848, + 700309403, + 701849799, + 702676374, + 704339693, + 704627291, + 704978723, + 706925106, + 706961067, + 707881767, + 708718991, + 710047147, + 714684598, + 718602155, + 719567894, + 722357136, + 723347857, + 723507229, + 724563050, + 724824531, + 725334875, + 725505370, + 727057077, + 728133118, + 731234318, + 734757084, + 736457806, + 736825775, + 737837885, + 738869287, + 740368588, + 740420027, + 741236193, + 742353680, + 743214581, + 747655733, + 748405419, + 748613958, + 754469030, + 758920254, + 760361070, + 760432616, + 767836593, + 768049431, + 769135687, + 770616989, + 773455656, + 776299523, + 777323183, + 777760575, + 778627741, + 778739404, + 781057209, + 785283089, + 786228600, + 787560585, + 787878740, + 788722510, + 788830451, + 793409056, + 794637836, + 794649487, + 795402621, + 796913940, + 797300505, + 798324809, + 798972651, + 799214246, + 799340634, + 801690306, + 803236410, + 805302446, + 806261272, + 808527837, + 809441648, + 809955765, + 810802696, + 810843384, + 813070515, + 813538710, + 813775358, + 813864414, + 814352117, + 814455831, + 818777571, + 826681227, + 827068981, + 828723211, + 830106114, + 830336284, + 830361060, + 835529079, + 836129953, + 836168593, + 838960846, + 844788606, + 845953333, + 848565916, + 848957642, + 849121159, + 851120563, + 856538010, + 856616682, + 864795828, + 867378503, + 867402348, + 868404050, + 869184496, + 870415891, + 870799218, + 870869861, + 871715154, + 872083567, + 876488276, + 878351397, + 879578176, + 880548058, + 882669504, + 883260826, + 884268869, + 885499024, + 885671097, + 886186667, + 886270309, + 886299740, + 888346617, + 889938581, + 889948247, + 891361573, + 894546543, + 900459305, + 900832596, + 901498131, + 902085795, + 902991147, + 905168948, + 907093989, + 911585842, + 913942693, + 917225666, + 917408487, + 917484161, + 917538068, + 919961938, + 922215612, + 925782580, + 925882427, + 929967045, + 930500190, + 931119878, + 932394363, + 935411109, + 936343044, + 940275771, + 940950815, + 941785088, + 942224427, + 943266415, + 944094140, + 944982709, + 945910514, + 953584968, + 954313220, + 954825740, + 955623646, + 963022833, + 964577900, + 965640674, + 966481389, + 966711625, + 967698206, + 969357579, + 969461703, + 969978039, + 970785943, + 974164604, + 976927672, + 979578127, + 980188536, + 985975299, + 989527956, + 990270572, + 992319813, + 993273992, + 994042408, + 994774191, + 998663551, + 999761496 + ] + }, + { + "input": [ + -942528283, + -940601224, + -934399025, + -932788086, + -923262710, + -921871738, + -919456834, + -915266172, + -909798664, + -908090554, + -906126694, + -900235923, + -900230115, + -898736065, + -898636279, + -889675356, + -888228111, + -885634264, + -878990515, + -862366510, + -860511657, + -835056635, + -828398597, + -819846511, + -817906679, + -817831532, + -803287040, + -800509467, + -794781029, + -793834446, + -789993407, + -789272070, + -779436986, + -768678961, + -768226566, + -768143803, + -766944835, + -765481258, + -760602942, + -758000982, + -742976175, + -742557488, + -731190822, + -731039707, + -729368225, + -729002966, + -718247496, + -709607536, + -703913711, + -702585080, + -702179602, + -701481885, + -698541117, + -692358700, + -691638793, + -690064922, + -688865848, + -683039829, + -682537853, + -679050756, + -677504311, + -676852110, + -673975832, + -670885235, + -669252783, + -669174289, + -660278491, + -652989316, + -651140261, + -649803532, + -631949003, + -631184750, + -622492680, + -612644631, + -610078767, + -607237645, + -603718162, + -598324510, + -593500584, + -589766932, + -589640615, + -586434635, + -585666446, + -584946482, + -584763505, + -581405451, + -580958902, + -578784392, + -576219935, + -568902788, + -560331883, + -557778145, + -551581351, + -550563010, + -545396951, + -543326866, + -538182838, + -536088392, + -535550912, + -523776417, + -519794995, + -518478300, + -518197870, + -512421062, + -503546468, + -502183625, + -499850469, + -499842510, + -479387337, + -479126876, + -473414167, + -463731033, + -461786905, + -457829303, + -456052671, + -445300161, + -434288764, + -428871114, + -427562346, + -422295131, + -419180469, + -418068532, + -417963970, + -411296001, + -409100737, + -405220271, + -402090364, + -394411667, + -394275115, + -392993029, + -391840097, + -391310265, + -388562357, + -388185680, + -387288313, + -384758930, + -382843540, + -382595468, + -373872704, + -371960408, + -369384755, + -368381007, + -368065685, + -351515661, + -349631302, + -346178053, + -344201071, + -339711838, + -330831747, + -327348039, + -326269364, + -325938161, + -320848492, + -319541146, + -313103600, + -312001978, + -309059152, + -307978985, + -307378133, + -306498306, + -306230339, + -302798451, + -298379390, + -295125836, + -283195977, + -281834595, + -277414760, + -272477656, + -268246048, + -267666186, + -264367794, + -263787791, + -261742202, + -259875313, + -256952026, + -256511828, + -255537055, + -254935923, + -252859494, + -241897278, + -239004404, + -234737549, + -231241394, + -222868140, + -219374894, + -219305641, + -213574109, + -208180152, + -207624663, + -207286522, + -206529194, + -204361321, + -202903247, + -193434734, + -190599742, + -186975206, + -183786635, + -182732609, + -177582736, + -173486821, + -171273813, + -167179939, + -164564626, + -160955323, + -160568755, + -157953711, + -149161855, + -148007984, + -146775541, + -138941651, + -135583695, + -133604410, + -129031108, + -125894061, + -124160329, + -123829160, + -112177434, + -107485010, + -98113802, + -97569067, + -93541670, + -92023155, + -84204645, + -82486890, + -80929195, + -74569888, + -67642064, + -65652279, + -65112070, + -59913251, + -58871917, + -47737233, + -38375382, + -38193584, + -32910193, + -31187676, + -28622287, + -25177068, + -21905355, + -14666362, + -13221963, + -11618578, + -2905116, + 1461777, + 1678492, + 2027305, + 6377089, + 8183232, + 12972961, + 16980155, + 28876114, + 31089673, + 33877505, + 961140433, + 963067492, + 969269691, + 970880630, + 980406006, + 981796978, + 984211882, + 988402544, + 993870052, + 995578162, + 997542022, + 1003432793, + 1003438601, + 1004932651, + 1005032437, + 1013993360, + 1015440605, + 1018034452, + 1024678201, + 1041302206, + 1043157059, + 1068612081, + 1075270119, + 1083822205, + 1085762037, + 1085837184, + 1100381676, + 1103159249, + 1108887687, + 1109834270, + 1113675309, + 1114396646, + 1124231730, + 1134989755, + 1135442150, + 1135524913, + 1136723881, + 1138187458, + 1143065774, + 1145667734, + 1160692541, + 1161111228, + 1172477894, + 1172629009, + 1174300491, + 1174665750, + 1185421220, + 1194061180, + 1199755005, + 1201083636, + 1201489114, + 1202186831, + 1205127599, + 1211310016, + 1212029923, + 1213603794, + 1214802868, + 1220628887, + 1221130863, + 1224617960, + 1226164405, + 1226816606, + 1229692884, + 1232783481, + 1234415933, + 1234494427, + 1243390225, + 1250679400, + 1252528455, + 1253865184, + 1271719713, + 1272483966, + 1281176036, + 1291024085, + 1293589949, + 1296431071, + 1299950554, + 1305344206, + 1310168132, + 1313901784, + 1314028101, + 1317234081, + 1318002270, + 1318722234, + 1318905211, + 1322263265, + 1322709814, + 1324884324, + 1327448781, + 1334765928, + 1343336833, + 1345890571, + 1352087365, + 1353105706, + 1358271765, + 1360341850, + 1365485878, + 1367580324, + 1368117804, + 1379892299, + 1383873721, + 1385190416, + 1385470846, + 1391247654, + 1400122248, + 1401485091, + 1403818247, + 1403826206, + 1424281379, + 1424541840, + 1430254549, + 1439937683, + 1441881811, + 1445839413, + 1447616045, + 1458368555, + 1469379952, + 1474797602, + 1476106370, + 1481373585, + 1484488247, + 1485600184, + 1485704746, + 1492372715, + 1494567979, + 1498448445, + 1501578352, + 1509257049, + 1509393601, + 1510675687, + 1511828619, + 1512358451, + 1515106359, + 1515483036, + 1516380403, + 1518909786, + 1520825176, + 1521073248, + 1529796012, + 1531708308, + 1534283961, + 1535287709, + 1535603031, + 1552153055, + 1554037414, + 1557490663, + 1559467645, + 1563956878, + 1572836969, + 1576320677, + 1577399352, + 1577730555, + 1582820224, + 1584127570, + 1590565116, + 1591666738, + 1594609564, + 1595689731, + 1596290583, + 1597170410, + 1597438377, + 1600870265, + 1605289326, + 1608542880, + 1620472739, + 1621834121, + 1626253956, + 1631191060, + 1635422668, + 1636002530, + 1639300922, + 1639880925, + 1641926514, + 1643793403, + 1646716690, + 1647156888, + 1648131661, + 1648732793, + 1650809222, + 1661771438, + 1664664312, + 1668931167, + 1672427322, + 1680800576, + 1684293822, + 1684363075, + 1690094607, + 1695488564, + 1696044053, + 1696382194, + 1697139522, + 1699307395, + 1700765469, + 1710233982, + 1713068974, + 1716693510, + 1719882081, + 1720936107, + 1726085980, + 1730181895, + 1732394903, + 1736488777, + 1739104090, + 1742713393, + 1743099961, + 1745715005, + 1754506861, + 1755660732, + 1756893175, + 1764727065, + 1768085021, + 1770064306, + 1774637608, + 1777774655, + 1779508387, + 1779839556, + 1791491282, + 1796183706, + 1805554914, + 1806099649, + 1810127046, + 1811645561, + 1819464071, + 1821181826, + 1822739521, + 1829098828, + 1836026652, + 1838016437, + 1838556646, + 1843755465, + 1844796799, + 1855931483, + 1865293334, + 1865475132, + 1870758523, + 1872481040, + 1875046429, + 1878491648, + 1881763361, + 1889002354, + 1890446753, + 1892050138, + 1900763600, + 1905130493, + 1905347208, + 1905696021, + 1910045805, + 1911851948, + 1916641677, + 1920648871, + 1932544830, + 1934758389, + 1937546221 + ], + "output": [ + 9306075, + 11233134, + 17435333, + 19046272, + 28571648, + 29962620, + 32377524, + 36568186, + 42035694, + 43743804, + 45707664, + 51598435, + 51604243, + 53098293, + 53198079, + 62159002, + 63606247, + 66200094, + 72843843, + 89467848, + 91322701, + 116777723, + 123435761, + 131987847, + 133927679, + 134002826, + 148547318, + 151324891, + 157053329, + 157999912, + 161840951, + 162562288, + 172397372, + 183155397, + 183607792, + 183690555, + 184889523, + 186353100, + 191231416, + 193833376, + 208858183, + 209276870, + 220643536, + 220794651, + 222466133, + 222831392, + 233586862, + 242226822, + 247920647, + 249249278, + 249654756, + 250352473, + 253293241, + 259475658, + 260195565, + 261769436, + 262968510, + 268794529, + 269296505, + 272783602, + 274330047, + 274982248, + 277858526, + 280949123, + 282581575, + 282660069, + 291555867, + 298845042, + 300694097, + 302030826, + 319885355, + 320649608, + 329341678, + 339189727, + 341755591, + 344596713, + 348116196, + 353509848, + 358333774, + 362067426, + 362193743, + 365399723, + 366167912, + 366887876, + 367070853, + 370428907, + 370875456, + 373049966, + 375614423, + 382931570, + 391502475, + 394056213, + 400253007, + 401271348, + 406437407, + 408507492, + 413651520, + 415745966, + 416283446, + 428057941, + 432039363, + 433356058, + 433636488, + 439413296, + 448287890, + 449650733, + 451983889, + 451991848, + 472447021, + 472707482, + 478420191, + 488103325, + 490047453, + 494005055, + 495781687, + 506534197, + 517545594, + 522963244, + 524272012, + 529539227, + 532653889, + 533765826, + 533870388, + 540538357, + 542733621, + 546614087, + 549743994, + 557422691, + 557559243, + 558841329, + 559994261, + 560524093, + 563272001, + 563648678, + 564546045, + 567075428, + 568990818, + 569238890, + 577961654, + 579873950, + 582449603, + 583453351, + 583768673, + 600318697, + 602203056, + 605656305, + 607633287, + 612122520, + 621002611, + 624486319, + 625564994, + 625896197, + 630985866, + 632293212, + 638730758, + 639832380, + 642775206, + 643855373, + 644456225, + 645336052, + 645604019, + 649035907, + 653454968, + 656708522, + 668638381, + 669999763, + 674419598, + 679356702, + 683588310, + 684168172, + 687466564, + 688046567, + 690092156, + 691959045, + 694882332, + 695322530, + 696297303, + 696898435, + 698974864, + 709937080, + 712829954, + 717096809, + 720592964, + 728966218, + 732459464, + 732528717, + 738260249, + 743654206, + 744209695, + 744547836, + 745305164, + 747473037, + 748931111, + 758399624, + 761234616, + 764859152, + 768047723, + 769101749, + 774251622, + 778347537, + 780560545, + 784654419, + 787269732, + 790879035, + 791265603, + 793880647, + 802672503, + 803826374, + 805058817, + 812892707, + 816250663, + 818229948, + 822803250, + 825940297, + 827674029, + 828005198, + 839656924, + 844349348, + 853720556, + 854265291, + 858292688, + 859811203, + 867629713, + 869347468, + 870905163, + 877264470, + 884192294, + 886182079, + 886722288, + 891921107, + 892962441, + 904097125, + 913458976, + 913640774, + 918924165, + 920646682, + 923212071, + 926657290, + 929929003, + 937167996, + 938612395, + 940215780, + 948929242, + 953296135, + 953512850, + 953861663, + 958211447, + 960017590, + 964807319, + 968814513, + 980710472, + 982924031, + 985711863 + ] + }, + { + "input": [ + 87346, + 55145540, + 131508320, + 186566514, + 420065265, + 475123459, + 570552534, + 617275633, + 625610728, + 672333827, + 766090853, + 821149047 + ], + "output": [ + 27616443, + 159037417, + 447594362, + 598081631, + 644804730, + 793619950 + ] + }, + { + "input": [ + -177234419, + -173917230, + -171565588, + -171233518, + -170672894, + -167738796, + -166651105, + -166612129, + -158974401, + -155051095, + -149315862, + -145625280, + -138632981, + -137159715, + -134317042, + -130009975, + -127318748, + -123913460, + -123131412, + -120478129, + -119912564, + -119592618, + -114738346, + -114419726, + -111173366, + -105674183, + -103207385, + -103012438, + -101499178, + -97343395, + -95608437, + -93578434, + -92957343, + -89244291, + -89116572, + -88854779, + -86986720, + -85177594, + -80734060, + -80067014, + -78487459, + -69862766, + -69173956, + -64709517, + -64532581, + -63310302, + -63231039, + -60687349, + -59922526, + -56319493, + -50726384, + -50571888, + -49885850, + -48973371, + -47373293, + -41429084, + -40143935, + -36360095, + -35972327, + -34424466, + -32364250, + -31670785, + -30461096, + -30197262, + -30149268, + -25839377, + -25392470, + -24362255, + -21946838, + -15308598, + -14408431, + -12927338, + -11418253, + -10291987, + -10205598, + 5339423, + 9284532, + 10535490, + 16559391, + 20895371, + 20975013, + 21538629, + 23150781, + 23500544, + 23822468, + 24998239, + 26276729, + 28217003, + 33873590, + 52205324, + 60379954, + 61375139, + 62864870, + 67238690, + 68511440, + 70664183, + 72648768, + 73788439, + 78038253, + 84330442, + 89998076, + 91749587, + 95737834, + 96560073, + 99162996, + 101618663, + 103224358, + 104731339, + 111107869, + 111283932, + 112846832, + 118497466, + 125286096, + 130907039, + 133790841, + 135744871, + 136885751, + 137709788, + 137901690, + 140576713, + 144455303, + 145636080, + 146811263, + 148846137, + 153995555, + 154458865, + 159165224, + 167089011, + 168538558, + 168823323, + 169404761, + 169410893, + 170312216, + 172095190, + 177287476, + 178752958, + 179311694, + 181142031, + 185599416, + 185985115, + 186620439, + 188604363, + 189908745, + 190841785, + 191749384, + 191921552, + 193567905, + 194273194, + 194605264, + 195165888, + 198099986, + 198987186, + 199187677, + 199226653, + 200081175, + 203943977, + 205581282, + 206438776, + 206561233, + 206864381, + 208166900, + 210787687, + 212077215, + 212414055, + 216522920, + 219932268, + 220213502, + 223097050, + 226361353, + 227205801, + 227929454, + 228679067, + 230537208, + 231521740, + 235828807, + 236223691, + 238218327, + 238520034, + 238730436, + 241925322, + 242707370, + 243179624, + 245360653, + 245926218, + 246246164, + 251100436, + 251419056, + 254665416, + 259536841, + 260164599, + 260793020, + 261107899, + 262631397, + 262826344, + 264339604, + 265205311, + 267615264, + 268495387, + 270230345, + 271845042, + 272260348, + 272881439, + 273288313, + 273955332, + 274147323, + 276594491, + 276722210, + 276984003, + 278054475, + 278852062, + 279369341, + 280661188, + 280787850, + 282319503, + 284564926, + 285104722, + 285771768, + 287077436, + 287351323, + 291233989, + 291548450, + 292648993, + 295976016, + 296664826, + 298144445, + 300011081, + 301129265, + 301306201, + 301602900, + 302528480, + 302607743, + 305151433, + 305916256, + 308110580, + 309519289, + 309696274, + 311526355, + 312821053, + 314290979, + 315112398, + 315266894, + 315952932, + 316865411, + 318465489, + 320941239, + 324066081, + 324409698, + 324941752, + 325694847, + 329478687, + 329866455, + 330003166, + 330031114, + 331414316, + 333474532, + 334167997, + 334942674, + 335377686, + 335452249, + 335641520, + 335689514, + 339999405, + 340446312, + 341476527, + 343504170, + 343891944, + 348917078, + 350530184, + 351430351, + 352911444, + 354420529, + 355546795, + 355633184, + 355903403, + 356008574, + 357492551, + 367336948, + 369607076, + 371178205, + 375123314, + 376374272, + 378029027, + 380162307, + 381182891, + 381367427, + 382398173, + 382748461, + 386734153, + 386813795, + 387377411, + 388989563, + 389339326, + 389661250, + 390837021, + 391052115, + 392115511, + 394055785, + 397116175, + 399712372, + 402322828, + 402956096, + 407447446, + 408983318, + 410957474, + 412226296, + 418044106, + 421443882, + 425305020, + 426218736, + 427213921, + 428703652, + 430043517, + 431073927, + 432293780, + 432694323, + 433077472, + 434350222, + 435377167, + 435959561, + 436502965, + 438487550, + 439627221, + 443877035, + 444445313, + 445456455, + 445885626, + 450169224, + 455836858, + 457588369, + 460720357, + 461576616, + 462005882, + 462398855, + 463167155, + 464390875, + 465001778, + 467457445, + 469063140, + 470408893, + 470538648, + 470570121, + 472781959, + 476946651, + 477122714, + 478685614, + 478812308, + 479442586, + 479729955, + 481995818, + 484103425, + 484336248, + 486676347, + 491124878, + 492348902, + 496745821, + 497961169, + 499629623, + 501583653, + 502724533, + 503548570, + 503740472, + 506415495, + 509263448, + 510091675, + 510294085, + 511474862, + 512650045, + 514684919, + 518085873, + 519314593, + 519834337, + 520297647, + 525004006, + 530040268, + 532927793, + 534281822, + 534377340, + 534662105, + 535243543, + 535249675, + 536150998, + 536611243, + 537933972, + 541144206, + 543126258, + 544591740, + 544852921, + 545150476, + 545449981, + 545846371, + 546635504, + 546980813, + 551438198, + 551823897, + 552459221, + 555747527, + 556680567, + 557199756, + 557588166, + 559406687, + 559881190, + 564351144, + 564825968, + 565919957, + 566869842, + 569782759, + 570524750, + 571352013, + 571420064, + 572277558, + 572400015, + 572864609, + 574005682, + 575110025, + 577915997, + 577925811, + 578252837, + 584389833, + 585771050, + 585866042, + 588196935, + 588935832, + 590133304, + 592051699, + 592200135, + 593768236, + 594670935, + 596375990, + 598491109, + 602062473, + 603621911, + 604057109, + 604569218, + 609018406, + 618245519, + 618614633, + 625375623, + 626631802, + 626946681, + 631044093, + 633454046, + 633765675, + 636349921, + 637683824, + 639127095, + 639794114, + 639986105, + 640845254, + 641294625, + 643893257, + 644678206, + 645208123, + 646626632, + 647752711, + 648158285, + 650403708, + 652916218, + 657072771, + 657387232, + 658487775, + 660232475, + 660431295, + 660494287, + 661932394, + 663983227, + 665849863, + 667127665, + 667441682, + 668624493, + 669172831, + 669454989, + 671304243, + 671564462, + 673949362, + 675398566, + 675535056, + 675904519, + 676415305, + 677349218, + 677365137, + 678659835, + 678692058, + 679336881, + 680129761, + 681073057, + 682684368, + 686780021, + 689904863, + 690191754, + 690780534, + 692872392, + 695841948, + 695869896, + 699756352, + 700658937, + 700781456, + 701291031, + 709290662, + 709342952, + 714755860, + 716681859, + 717495988, + 719288631, + 719868143, + 719906780, + 721742185, + 721847356, + 723104221, + 723331333, + 726696931, + 729582745, + 730591908, + 732333567, + 732464468, + 733175730, + 735445858, + 740879141, + 742939263, + 743867809, + 746001089, + 746172326, + 746271545, + 747021673, + 747206209, + 748587243, + 753735588, + 754455529, + 756890897, + 757091112, + 762954957, + 768161610, + 768794878, + 772146972, + 773286228, + 773825912, + 774822100, + 775445458, + 776796256, + 778065078, + 784386720, + 787282664, + 788262673, + 788685627, + 788871531, + 789389613, + 791143802, + 791399012, + 795882299, + 796912709, + 797120222, + 798132562, + 798533105, + 800689357, + 801215949, + 801737087, + 801798343, + 803411445, + 804612973, + 806287977, + 807423153, + 807519167, + 810284095, + 811295237, + 811724408, + 815549518, + 826559139, + 827844664, + 829005937, + 830229657, + 836247675, + 836377430, + 838620741, + 844651090, + 845281368, + 845568737, + 847834600, + 849942207, + 852515129, + 858187684, + 863799951, + 875102230, + 875930457, + 883924655, + 885153375, + 895879050, + 900120604, + 902450025, + 906982988, + 910691703, + 911288763, + 911685153, + 912474286, + 923038538, + 925719972, + 930189926, + 932708624, + 936363532, + 937190795, + 938703391, + 940948807, + 943764593, + 950228615, + 951704824, + 954035717, + 955972086, + 957890481, + 960509717, + 964329891, + 969460693, + 984084301, + 984453415, + 999604457, + 1002188703, + 1006684036, + 1007133407, + 1010516988, + 1013591493, + 1026071257, + 1026270077, + 1026333069, + 1027771176, + 1032966447, + 1034463275, + 1035011613, + 1035293771, + 1037143025, + 1037403244, + 1041237348, + 1041743301, + 1042254087, + 1043188000, + 1044530840, + 1045175663, + 1046911839, + 1048523150, + 1056030536, + 1058711174, + 1065595134, + 1066497719, + 1075129444, + 1082520641, + 1083334770, + 1085127413, + 1085706925, + 1085745562, + 1088943003, + 1092535713, + 1095421527, + 1096430690, + 1098172349, + 1098303250, + 1106717923, + 1108778045, + 1112011108, + 1112110327, + 1119574370, + 1120294311, + 1122929894, + 1137985754, + 1139664694, + 1141284240, + 1150225502, + 1154101455, + 1154524409, + 1154710313, + 1155228395, + 1157237794, + 1162959004, + 1166528139, + 1167575869, + 1169250227, + 1170451755, + 1172126759, + 1173261935, + 1173357949, + 1181388300 + ], + "output": [ + 5684972, + 9002161, + 11353803, + 11685873, + 12246497, + 15180595, + 16268286, + 16307262, + 23944990, + 27868296, + 33603529, + 37294111, + 44286410, + 45759676, + 48602349, + 52909416, + 55600643, + 59005931, + 59787979, + 62441262, + 63006827, + 63326773, + 68181045, + 68499665, + 71746025, + 77245208, + 79712006, + 79906953, + 81420213, + 85575996, + 87310954, + 89340957, + 89962048, + 93675100, + 93802819, + 94064612, + 95932671, + 97741797, + 102185331, + 102852377, + 104431932, + 113056625, + 113745435, + 118209874, + 118386810, + 119609089, + 119688352, + 122232042, + 122996865, + 126599898, + 132193007, + 132347503, + 133033541, + 133946020, + 135546098, + 141490307, + 142775456, + 146559296, + 146947064, + 148494925, + 150555141, + 151248606, + 152458295, + 152722129, + 152770123, + 157080014, + 157526921, + 158557136, + 160972553, + 167610793, + 168510960, + 169992053, + 171501138, + 172627404, + 172713793, + 188258814, + 192203923, + 193454881, + 199478782, + 203814762, + 203894404, + 204458020, + 206070172, + 206419935, + 206741859, + 207917630, + 209196120, + 211136394, + 216792981, + 235124715, + 243299345, + 244294530, + 245784261, + 250158081, + 251430831, + 253583574, + 255568159, + 256707830, + 260957644, + 267249833, + 272917467, + 274668978, + 278657225, + 279479464, + 282082387, + 284538054, + 286143749, + 287650730, + 294027260, + 294203323, + 295766223, + 301416857, + 308205487, + 313826430, + 316710232, + 318664262, + 319805142, + 320629179, + 320821081, + 323496104, + 327374694, + 328555471, + 329730654, + 331765528, + 336914946, + 337378256, + 342084615, + 350008402, + 351457949, + 351742714, + 352324152, + 352330284, + 353231607, + 355014581, + 360206867, + 361672349, + 362231085, + 364061422, + 368518807, + 368904506, + 369539830, + 372828136, + 373761176, + 374668775, + 376487296, + 381906577, + 383000566, + 386863368, + 388500673, + 389358167, + 389480624, + 391086291, + 394996606, + 395333446, + 402851659, + 406016441, + 409280744, + 410848845, + 413456599, + 419143082, + 421137718, + 421649827, + 426099015, + 442456232, + 443712411, + 444027290, + 448124702, + 450534655, + 454764433, + 456207704, + 456874723, + 457066714, + 460973866, + 462288732, + 463707241, + 465238894, + 467484317, + 469996827, + 474153380, + 474467841, + 475568384, + 481063836, + 482930472, + 484522291, + 491029971, + 492615665, + 494445746, + 495740444, + 497210370, + 503860630, + 506985472, + 507861143, + 512922557, + 512950505, + 517862065, + 518371640, + 526423561, + 531836469, + 538822794, + 538927965, + 540411942, + 550256339, + 552526467, + 560948418, + 563081698, + 564102282, + 564286818, + 565667852, + 573971506, + 580035566, + 585242219, + 585875487, + 590366837, + 591902709, + 593876865, + 595145687, + 604363273, + 608224411, + 612962908, + 613993318, + 615213171, + 615613714, + 618296558, + 618878952, + 627364704, + 628375846, + 628805017, + 643639748, + 644925273, + 646086546, + 647310266, + 653328284, + 653458039, + 655701350, + 661731699, + 662361977, + 662649346, + 664915209, + 667022816, + 669595738, + 675268293, + 680880560, + 692182839, + 693011066, + 701005264, + 702233984, + 712959659, + 717201213, + 719530634, + 724063597, + 727772312, + 728369372, + 728765762, + 729554895, + 740119147, + 742800581, + 747270535, + 749789233, + 753444141, + 754271404, + 755784000, + 758029416, + 760845202, + 767309224, + 768785433, + 771116326, + 773052695, + 774971090, + 777590326, + 781410500, + 786541302, + 801164910, + 801534024, + 816685066, + 819269312, + 823764645, + 824214016, + 827597597, + 830672102, + 843151866, + 843350686, + 843413678, + 844851785, + 850047056, + 851543884, + 852092222, + 852374380, + 854223634, + 854483853, + 858317957, + 858823910, + 859334696, + 860268609, + 861611449, + 862256272, + 863992448, + 865603759, + 873111145, + 875791783, + 882675743, + 883578328, + 892210053, + 899601250, + 900415379, + 902208022, + 902787534, + 902826171, + 906023612, + 909616322, + 912502136, + 913511299, + 915252958, + 915383859, + 923798532, + 925858654, + 929091717, + 929190936, + 936654979, + 937374920, + 940010503, + 955066363, + 956745303, + 958364849, + 967306111, + 971182064, + 971605018, + 971790922, + 972309004, + 974318403, + 980039613, + 983608748, + 984656478, + 986330836, + 987532364, + 989207368, + 990342544, + 990438558, + 998468909 + ] + }, + { + "input": [ + -591674490, + -589325006, + -587273831, + -584788197, + -584675659, + -583230492, + -579667160, + -578825074, + -563356587, + -557615336, + -554201546, + -553046735, + -548883129, + -547176796, + -540455383, + -532130700, + -530724979, + -526880036, + -525420960, + -518549344, + -516535862, + -499959248, + -495647322, + -490867783, + -486723379, + -482157682, + -479657473, + -475146994, + -474479423, + -469145424, + -466044838, + -464963079, + -464411614, + -463318794, + -441235732, + -439615288, + -436694112, + -434462791, + -432290256, + -431948799, + -427433381, + -420927383, + -415623194, + -414311667, + -412903143, + -411859706, + -407171078, + -402452148, + -398190814, + -396954582, + -393512312, + -390350353, + -383078186, + -376881792, + -375741982, + -373578516, + -372758145, + -366357626, + -366012049, + -364406083, + -364114016, + -360275318, + -358693401, + -357272975, + -355664261, + -355114308, + -351177751, + -350019318, + -347486574, + -343365442, + -340353443, + -338067380, + -334474760, + -332439402, + -324920117, + -322244942, + -319552912, + -319019200, + -310816539, + -308661975, + -291946110, + -287453474, + -278517042, + -274139784, + -272740878, + -268832546, + -264003342, + -261626518, + -250863589, + -250715919, + -250499626, + -247870284, + -247090379, + -245208732, + -243774186, + -231424981, + -230821579, + -222508334, + -220655727, + -208851935, + -207903167, + -206081686, + -205881624, + -200845541, + -199941028, + -199043082, + -198604343, + -197161273, + -190381894, + -189471046, + -186187151, + -183831997, + -182080568, + -174377452, + -171555504, + -167052048, + -164482350, + -158751295, + -152565152, + -143005858, + -141845012, + -138443217, + -131459751, + -127562717, + -115247872, + -106445846, + -101892221, + -97585088, + -94677266, + -93692841, + -88675449, + -85869108, + -81024815, + -66686163, + -64810470, + -61728145, + -59892589, + -56812801, + -56205808, + -56041461, + -53637278, + -52871864, + -48689065, + -40819621, + -40125648, + -38037337, + -36877381, + -36715102, + -36189155, + -30075734, + -28321183, + -28173642, + -23114938, + -22537590, + -20420535, + -19635794, + -15005851, + -5189214, + 14248485, + 21663778, + 22317915, + 22445135, + 26058333, + 31923649, + 33172685, + 34345129, + 41971480, + 70865452, + 72062005, + 72295878, + 74830853, + 77895689, + 78187039, + 84580227, + 88793173, + 99112059, + 114822743, + 117890112, + 120128193, + 124744460, + 129920286, + 140600442, + 145061959, + 145387955, + 146374846, + 147421326, + 159998400, + 162966006, + 163034452, + 165578255, + 168331936, + 172424814, + 173287542, + 176294554, + 178648496, + 181687152, + 185715642, + 199659455, + 200171452, + 216890998, + 218762235, + 219433539, + 226132599, + 238581623, + 247719606, + 257569398, + 257654859, + 258478244, + 263231673, + 289437611, + 294915667, + 299944705, + 303301695, + 307829686, + 316873888, + 318152931, + 323535215, + 323593736, + 326110943, + 332276466, + 337075722, + 337720347, + 339755806, + 341485790, + 346043774, + 347309327, + 355173714, + 355589584, + 363350242, + 375708039, + 377789095, + 379614827, + 395983206, + 399828220, + 603679782, + 606029266, + 608080441, + 610566075, + 610678613, + 612123780, + 615687112, + 616529198, + 631997685, + 637738936, + 641152726, + 642307537, + 646471143, + 648177476, + 654898889, + 663223572, + 664629293, + 668474236, + 669933312, + 676804928, + 678818410, + 695395024, + 699706950, + 704486489, + 708630893, + 713196590, + 715696799, + 720207278, + 720874849, + 726208848, + 729309434, + 730391193, + 730942658, + 732035478, + 754118540, + 755738984, + 758660160, + 760891481, + 763064016, + 763405473, + 767920891, + 774426889, + 779731078, + 781042605, + 782451129, + 783494566, + 788183194, + 792902124, + 797163458, + 798399690, + 801841960, + 805003919, + 812276086, + 818472480, + 819612290, + 821775756, + 822596127, + 828996646, + 829342223, + 830948189, + 831240256, + 835078954, + 836660871, + 838081297, + 839690011, + 840239964, + 844176521, + 845334954, + 847867698, + 851988830, + 855000829, + 857286892, + 860879512, + 862914870, + 870434155, + 873109330, + 875801360, + 876335072, + 884537733, + 886692297, + 903408162, + 907900798, + 916837230, + 921214488, + 922613394, + 926521726, + 931350930, + 933727754, + 944490683, + 944638353, + 944854646, + 947483988, + 948263893, + 950145540, + 951580086, + 963929291, + 964532693, + 972845938, + 974698545, + 986502337, + 987451105, + 989272586, + 989472648, + 994508731, + 995413244, + 996311190, + 996749929, + 998192999, + 1004972378, + 1005883226, + 1009167121, + 1011522275, + 1013273704, + 1020976820, + 1023798768, + 1028302224, + 1030871922, + 1036602977, + 1042789120, + 1052348414, + 1053509260, + 1056911055, + 1063894521, + 1067791555, + 1080106400, + 1088908426, + 1093462051, + 1097769184, + 1100677006, + 1101661431, + 1106678823, + 1109485164, + 1114329457, + 1128668109, + 1130543802, + 1133626127, + 1135461683, + 1138541471, + 1139148464, + 1139312811, + 1141716994, + 1142482408, + 1146665207, + 1154534651, + 1155228624, + 1157316935, + 1158476891, + 1158639170, + 1159165117, + 1165278538, + 1167033089, + 1167180630, + 1172239334, + 1172816682, + 1174933737, + 1175718478, + 1180348421, + 1190165058, + 1209602757, + 1217018050, + 1217672187, + 1217799407, + 1221412605, + 1227277921, + 1228526957, + 1229699401, + 1237325752, + 1266219724, + 1267416277, + 1267650150, + 1270185125, + 1273249961, + 1273541311, + 1279934499, + 1284147445, + 1294466331, + 1310177015, + 1313244384, + 1315482465, + 1320098732, + 1325274558, + 1335954714, + 1340416231, + 1340742227, + 1341729118, + 1342775598, + 1355352672, + 1358320278, + 1358388724, + 1360932527, + 1363686208, + 1367779086, + 1368641814, + 1371648826, + 1374002768, + 1377041424, + 1381069914, + 1395013727, + 1395525724, + 1412245270, + 1414116507, + 1414787811, + 1421486871, + 1433935895, + 1443073878, + 1452923670, + 1453009131, + 1453832516, + 1458585945, + 1484791883, + 1490269939, + 1495298977, + 1498655967, + 1503183958, + 1512228160, + 1513507203, + 1518889487, + 1518948008, + 1521465215, + 1527630738, + 1532429994, + 1533074619, + 1535110078, + 1536840062, + 1541398046, + 1542663599, + 1550527986, + 1550943856, + 1558704514, + 1571062311, + 1573143367, + 1574969099, + 1591337478, + 1595182492 + ], + "output": [ + 6002646, + 8352130, + 10403305, + 12888939, + 13001477, + 14446644, + 18009976, + 18852062, + 34320549, + 40061800, + 43475590, + 44630401, + 48794007, + 50500340, + 57221753, + 65546436, + 66952157, + 70797100, + 72256176, + 79127792, + 81141274, + 97717888, + 102029814, + 106809353, + 110953757, + 115519454, + 118019663, + 122530142, + 123197713, + 128531712, + 131632298, + 132714057, + 133265522, + 134358342, + 156441404, + 158061848, + 160983024, + 163214345, + 165386880, + 165728337, + 170243755, + 176749753, + 182053942, + 183365469, + 184773993, + 185817430, + 190506058, + 195224988, + 199486322, + 200722554, + 204164824, + 207326783, + 214598950, + 220795344, + 221935154, + 224098620, + 224918991, + 231319510, + 231665087, + 233271053, + 233563120, + 237401818, + 238983735, + 240404161, + 242012875, + 242562828, + 246499385, + 247657818, + 250190562, + 254311694, + 257323693, + 259609756, + 263202376, + 265237734, + 272757019, + 275432194, + 278124224, + 278657936, + 286860597, + 289015161, + 305731026, + 310223662, + 319160094, + 323537352, + 324936258, + 328844590, + 333673794, + 336050618, + 346813547, + 346961217, + 347177510, + 349806852, + 350586757, + 352468404, + 353902950, + 366252155, + 366855557, + 375168802, + 377021409, + 388825201, + 389773969, + 391595450, + 391795512, + 396831595, + 397736108, + 398634054, + 399072793, + 400515863, + 407295242, + 408206090, + 411489985, + 413845139, + 415596568, + 423299684, + 426121632, + 430625088, + 433194786, + 438925841, + 445111984, + 454671278, + 455832124, + 459233919, + 466217385, + 470114419, + 482429264, + 491231290, + 495784915, + 500092048, + 502999870, + 503984295, + 509001687, + 511808028, + 516652321, + 530990973, + 532866666, + 535948991, + 537784547, + 540864335, + 541471328, + 541635675, + 544039858, + 544805272, + 548988071, + 556857515, + 557551488, + 559639799, + 560799755, + 560962034, + 561487981, + 567601402, + 569355953, + 569503494, + 574562198, + 575139546, + 577256601, + 578041342, + 582671285, + 592487922, + 611925621, + 619340914, + 619995051, + 620122271, + 623735469, + 629600785, + 630849821, + 632022265, + 639648616, + 668542588, + 669739141, + 669973014, + 672507989, + 675572825, + 675864175, + 682257363, + 686470309, + 696789195, + 712499879, + 715567248, + 717805329, + 722421596, + 727597422, + 738277578, + 742739095, + 743065091, + 744051982, + 745098462, + 757675536, + 760643142, + 760711588, + 763255391, + 766009072, + 770101950, + 770964678, + 773971690, + 776325632, + 779364288, + 783392778, + 797336591, + 797848588, + 814568134, + 816439371, + 817110675, + 823809735, + 836258759, + 845396742, + 855246534, + 855331995, + 856155380, + 860908809, + 887114747, + 892592803, + 897621841, + 900978831, + 905506822, + 914551024, + 915830067, + 921212351, + 921270872, + 923788079, + 929953602, + 934752858, + 935397483, + 937432942, + 939162926, + 943720910, + 944986463, + 952850850, + 953266720, + 961027378, + 973385175, + 975466231, + 977291963, + 993660342, + 997505356 + ] + } + ], + "haskell_template": "recoverArray :: [Int] -> [Int]\nrecoverArray nums ", + "ocaml_template": "let recoverArray (nums: int list) : int list = ", + "scala_template": "def recoverArray(nums: List[Int]): List[Int] = { \n \n}", + "java_template": "public static List recoverArray(List nums) {\n\n}", + "python_template": "class Solution(object):\n def recoverArray(self, nums):\n \"\"\"\n :type nums: List[int]\n :rtype: List[int]\n \"\"\"\n " +} \ No newline at end of file diff --git a/recover_the_original_array/ocaml_tests/main.ml b/recover_the_original_array/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..a544c80f85c3254100095924bd42307aaaac8902 --- /dev/null +++ b/recover_the_original_array/ocaml_tests/main.ml @@ -0,0 +1,29 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal [3;7;11] (recoverArray [2;10;6;4;8;12]) + +let test2 _ = assert_equal [2;2] (recoverArray [1;1;3;3]) + +let test3 _ = assert_equal [220] (recoverArray [5;435]) + + + (* Grouping test cases *) + let suite = "Test Suite for recoverArray" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + "test3" >:: test3; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/recover_the_original_array/scala_tests/MySuite.scala b/recover_the_original_array/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..aeb11b6380bb4da90a32caf4878a56b8b661cca4 --- /dev/null +++ b/recover_the_original_array/scala_tests/MySuite.scala @@ -0,0 +1,16 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.recoverArray(List(2,10,6,4,8,12)), List(3,7,11)) + } + + test("test2") { + assertEquals(Main.recoverArray(List(1,1,3,3)), List(2,2)) + } + + test("test3") { + assertEquals(Main.recoverArray(List(5,435)), List(220)) + } + +} diff --git a/relocate_marbles/.DS_Store b/relocate_marbles/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..17de57d722f1521ebf7bacd68613d807b20c79ca Binary files /dev/null and b/relocate_marbles/.DS_Store differ diff --git a/relocate_marbles/haskell_tests/Main.hs b/relocate_marbles/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..03514b9e7e76e41edf707d07789c8cebec5316cd --- /dev/null +++ b/relocate_marbles/haskell_tests/Main.hs @@ -0,0 +1,24 @@ + +module Main where +import Test.HUnit + +--Program start + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (relocateMarbles [1,6,7,8] [1,7,2] [2,9,5])," [5,6,8,9] (relocateMarbles [1,6,7,8] [1,7,2] [2,9,5])) + +test2 :: Test +test2 = TestCase (assertEqual "for (relocateMarbles [1,1,3,3] [1,3] [2,2])," [2] (relocateMarbles [1,1,3,3] [1,3] [2,2])) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/relocate_marbles/java_tests/Main.java b/relocate_marbles/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..ae33c52cf4a503f43ac30ac2724cf21988240ed7 --- /dev/null +++ b/relocate_marbles/java_tests/Main.java @@ -0,0 +1,21 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(new ArrayList<>(Arrays.asList(5,6,8,9)), relocateMarbles(new ArrayList<>(Arrays.asList(1,6,7,8)), new ArrayList<>(Arrays.asList(1,7,2)), new ArrayList<>(Arrays.asList(2,9,5)))); +} +@Test +public void test2() { + assertEquals(new ArrayList<>(Arrays.asList(2)), relocateMarbles(new ArrayList<>(Arrays.asList(1,1,3,3)), new ArrayList<>(Arrays.asList(1,3)), new ArrayList<>(Arrays.asList(2,2)))); +} + +} diff --git a/relocate_marbles/meta.json b/relocate_marbles/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c89249ad67e31b2e791e34146eafcd5e59756919 --- /dev/null +++ b/relocate_marbles/meta.json @@ -0,0 +1,26 @@ +{ + "id": 2834, + "name": "relocate_marbles", + "difficulty": "Medium", + "link": "https://leetcode.com/problems/relocate-marbles/", + "date": "1687564800000", + "task_description": "You are given a **0-indexed** integer array `nums` representing the initial positions of some marbles. You are also given two **0-indexed **integer arrays `moveFrom` and `moveTo` of **equal** length. Throughout `moveFrom.length` steps, you will change the positions of the marbles. On the `ith` step, you will move **all** marbles at position `moveFrom[i]` to position `moveTo[i]`. After completing all the steps, return _the sorted list of **occupied** positions_. **Notes:** We call a position **occupied** if there is at least one marble in that position. There may be multiple marbles in a single position. **Example 1:** ``` **Input:** nums = [1,6,7,8], moveFrom = [1,7,2], moveTo = [2,9,5] **Output:** [5,6,8,9] **Explanation:** Initially, the marbles are at positions 1,6,7,8. At the i = 0th step, we move the marbles at position 1 to position 2. Then, positions 2,6,7,8 are occupied. At the i = 1st step, we move the marbles at position 7 to position 9. Then, positions 2,6,8,9 are occupied. At the i = 2nd step, we move the marbles at position 2 to position 5. Then, positions 5,6,8,9 are occupied. At the end, the final positions containing at least one marbles are [5,6,8,9]. ``` **Example 2:** ``` **Input:** nums = [1,1,3,3], moveFrom = [1,3], moveTo = [2,2] **Output:** [2] **Explanation:** Initially, the marbles are at positions [1,1,3,3]. At the i = 0th step, we move all the marbles at position 1 to position 2. Then, the marbles are at positions [2,2,3,3]. At the i = 1st step, we move all the marbles at position 3 to position 2. Then, the marbles are at positions [2,2,2,2]. Since 2 is the only occupied position, we return [2]. ``` **Constraints:** `1 <= nums.length <= 105` `1 <= moveFrom.length <= 105` `moveFrom.length == moveTo.length` `1 <= nums[i], moveFrom[i], moveTo[i] <= 109` The test cases are generated such that there is at least a marble in `moveFrom[i]` at the moment we want to apply the `ith` move.", + "public_test_cases": [ + { + "label": "Example 1", + "input": "nums = [1,6,7,8], moveFrom = [1,7,2], moveTo = [2,9,5]", + "output": "[5,6,8,9] " + }, + { + "label": "Example 2", + "input": "nums = [1,1,3,3], moveFrom = [1,3], moveTo = [2,2]", + "output": "[2] " + } + ], + "private_test_cases": [], + "haskell_template": "relocateMarbles :: [Int] -> [Int] -> [Int] -> [Int]\nrelocateMarbles nums moveFrom moveTo ", + "ocaml_template": "let relocateMarbles (nums: int list) (moveFrom: int list) (moveTo: int list) : int list = ", + "scala_template": "def relocateMarbles(nums: List[Int],moveFrom: List[Int],moveTo: List[Int]): List[Int] = { \n \n}", + "java_template": "public static List relocateMarbles(List nums, List moveFrom, List moveTo) {\n\n}", + "python_template": "class Solution(object):\n def relocateMarbles(self, nums, moveFrom, moveTo):\n \"\"\"\n :type nums: List[int]\n :type moveFrom: List[int]\n :type moveTo: List[int]\n :rtype: List[int]\n \"\"\"\n " +} \ No newline at end of file diff --git a/relocate_marbles/ocaml_tests/main.ml b/relocate_marbles/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..7b717b349ee68be07d63c52a59f52e105a7882e8 --- /dev/null +++ b/relocate_marbles/ocaml_tests/main.ml @@ -0,0 +1,26 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal [5;6;8;9] (relocateMarbles [1;6;7;8] [1;7;2] [2;9;5]) + +let test2 _ = assert_equal [2] (relocateMarbles [1;1;3;3] [1;3] [2;2]) + + + (* Grouping test cases *) + let suite = "Test Suite for relocateMarbles" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/relocate_marbles/scala_tests/MySuite.scala b/relocate_marbles/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..e758e7ea30d765294c64cfd7af5557b607868874 --- /dev/null +++ b/relocate_marbles/scala_tests/MySuite.scala @@ -0,0 +1,12 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.relocateMarbles(List(1,6,7,8),List(1,7,2),List(2,9,5)), List(5,6,8,9)) + } + + test("test2") { + assertEquals(Main.relocateMarbles(List(1,1,3,3),List(1,3),List(2,2)), List(2)) + } + +} diff --git a/remove_adjacent_almost_equal_characters/haskell_tests/Main.hs b/remove_adjacent_almost_equal_characters/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..dca579607ec7855b4faa89d8ce1d7ebcc4371fe8 --- /dev/null +++ b/remove_adjacent_almost_equal_characters/haskell_tests/Main.hs @@ -0,0 +1,44 @@ + +module Main where +import Test.HUnit + +--Program start +removeAlmostEqualCharacters :: String -> Int +removeAlmostEqualCharacters word = undefined + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"aaaaa \")," 2 (removeAlmostEqualCharacters "aaaaa")) + +test2 :: Test +test2 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"abddez \")," 2 (removeAlmostEqualCharacters "abddez")) + +test3 :: Test +test3 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"zyxyxyz \")," 3 (removeAlmostEqualCharacters "zyxyxyz")) + +test4 :: Test +test4 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"egemspqbudprialxwsqfsbfebuuelyvzymevldlviaesalwhpaepxgxsspnmogegnozjintuq \")," 10 (removeAlmostEqualCharacters "egemspqbudprialxwsqfsbfebuuelyvzymevldlviaesalwhpaepxgxsspnmogegnozjintuq")) + +test5 :: Test +test5 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"pgp \")," 0 (removeAlmostEqualCharacters "pgp")) + +test6 :: Test +test6 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"nyblzqabcwjcyuzezzlzxshqqpecfekiugft \")," 5 (removeAlmostEqualCharacters "nyblzqabcwjcyuzezzlzxshqqpecfekiugft")) + +test7 :: Test +test7 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"omnbzkruaz \")," 1 (removeAlmostEqualCharacters "omnbzkruaz")) + +test8 :: Test +test8 = TestCase (assertEqual "for (removeAlmostEqualCharacters \"mbrfpgvglbadahkokomrsydnbvoueolbawkteoxpxvaxdxgudiuvtlqgisiiptatjdkcsdsfntgvgq \")," 5 (removeAlmostEqualCharacters "mbrfpgvglbadahkokomrsydnbvoueolbawkteoxpxvaxdxgudiuvtlqgisiiptatjdkcsdsfntgvgq")) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2, TestLabel "Test3" test3, TestLabel "Test4" test4, TestLabel "Test5" test5, TestLabel "Test6" test6, TestLabel "Test7" test7] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/remove_adjacent_almost_equal_characters/java_tests/Main.java b/remove_adjacent_almost_equal_characters/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..4f53ac2cbacef6fbcb9375135493777f9515a15b --- /dev/null +++ b/remove_adjacent_almost_equal_characters/java_tests/Main.java @@ -0,0 +1,24 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(2, removeAlmostEqualCharacters("aaaaa")); +} +@Test +public void test2() { + assertEquals(2, removeAlmostEqualCharacters("abddez")); +} +@Test +public void test3() { + assertEquals(3, removeAlmostEqualCharacters("zyxyxyz")); +} + +} diff --git a/remove_adjacent_almost_equal_characters/meta.json b/remove_adjacent_almost_equal_characters/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..5b9f304a7c30333a50c466cddfe07106bf262b24 --- /dev/null +++ b/remove_adjacent_almost_equal_characters/meta.json @@ -0,0 +1,52 @@ +{ + "id": 3230, + "name": "remove_adjacent_almost_equal_characters", + "difficulty": "Medium", + "link": "https://leetcode.com/problems/remove-adjacent-almost-equal-characters/", + "date": "2023-11-25 00:00:00", + "task_description": "You are given a **0-indexed** string `word`. In one operation, you can pick any index `i` of `word` and change `word[i]` to any lowercase English letter. Return _the **minimum** number of operations needed to remove all adjacent **almost-equal** characters from_ `word`. Two characters `a` and `b` are **almost-equal** if `a == b` or `a` and `b` are adjacent in the alphabet. **Example 1:** ``` **Input:** word = \"aaaaa\" **Output:** 2 **Explanation:** We can change word into \"a**c**a**c**a\" which does not have any adjacent almost-equal characters. It can be shown that the minimum number of operations needed to remove all adjacent almost-equal characters from word is 2. ``` **Example 2:** ``` **Input:** word = \"abddez\" **Output:** 2 **Explanation:** We can change word into \"**y**bd**o**ez\" which does not have any adjacent almost-equal characters. It can be shown that the minimum number of operations needed to remove all adjacent almost-equal characters from word is 2. ``` **Example 3:** ``` **Input:** word = \"zyxyxyz\" **Output:** 3 **Explanation:** We can change word into \"z**a**x**a**x**a**z\" which does not have any adjacent almost-equal characters. It can be shown that the minimum number of operations needed to remove all adjacent almost-equal characters from word is 3. ``` **Constraints:** `1 <= word.length <= 100` `word` consists only of lowercase English letters.", + "public_test_cases": [ + { + "label": "Example 1", + "input": "word = \"aaaaa\"", + "output": "2 " + }, + { + "label": "Example 2", + "input": "word = \"abddez\"", + "output": "2 " + }, + { + "label": "Example 3", + "input": "word = \"zyxyxyz\"", + "output": "3 " + } + ], + "private_test_cases": [ + { + "input": "egemspqbudprialxwsqfsbfebuuelyvzymevldlviaesalwhpaepxgxsspnmogegnozjintuq", + "output": 10 + }, + { + "input": "pgp", + "output": 0 + }, + { + "input": "nyblzqabcwjcyuzezzlzxshqqpecfekiugft", + "output": 5 + }, + { + "input": "omnbzkruaz", + "output": 1 + }, + { + "input": "mbrfpgvglbadahkokomrsydnbvoueolbawkteoxpxvaxdxgudiuvtlqgisiiptatjdkcsdsfntgvgq", + "output": 5 + } + ], + "haskell_template": "removeAlmostEqualCharacters :: String -> Int\nremoveAlmostEqualCharacters word ", + "ocaml_template": "let removeAlmostEqualCharacters (word: string) : int = ", + "scala_template": "def removeAlmostEqualCharacters(word: String): Int = { \n \n}", + "java_template": "class Solution {\n public int removeAlmostEqualCharacters(String word) {\n \n }\n}", + "python_template": "class Solution(object):\n def removeAlmostEqualCharacters(self, word):\n \"\"\"\n :type word: str\n :rtype: int\n \"\"\"\n " +} \ No newline at end of file diff --git a/remove_adjacent_almost_equal_characters/ocaml_tests/main.ml b/remove_adjacent_almost_equal_characters/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..63c18f8c9bfc3c13c93a2c0fe8ea15de64d1dbdf --- /dev/null +++ b/remove_adjacent_almost_equal_characters/ocaml_tests/main.ml @@ -0,0 +1,45 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + let removeAlmostEqualCharacters (word: string) : int = failwith "Not implemented" + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal 2 (removeAlmostEqualCharacters "aaaaa") + +let test2 _ = assert_equal 2 (removeAlmostEqualCharacters "abddez") + +let test3 _ = assert_equal 3 (removeAlmostEqualCharacters "zyxyxyz") + +let test4 _ = assert_equal 3 (removeAlmostEqualCharacters "egemspqbudprialxwsqfsbfebuuelyvzymevldlviaesalwhpaepxgxsspnmogegnozjintuq") + +let test5 _ = assert_equal 3 (removeAlmostEqualCharacters "pgp") + +let test6 _ = assert_equal 3 (removeAlmostEqualCharacters "nyblzqabcwjcyuzezzlzxshqqpecfekiugft") + +let test7 _ = assert_equal 3 (removeAlmostEqualCharacters "omnbzkruaz") + +let test8 _ = assert_equal 3 (removeAlmostEqualCharacters "mbrfpgvglbadahkokomrsydnbvoueolbawkteoxpxvaxdxgudiuvtlqgisiiptatjdkcsdsfntgvgq") + + + (* Grouping test cases *) + let suite = "Test Suite for removeAlmostEqualCharacters" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + "test3" >:: test3; + "test4" >:: test4; + "test5" >:: test5; + "test6" >:: test6; + "test7" >:: test7; + "test8" >:: test8; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/remove_adjacent_almost_equal_characters/scala_tests/MySuite.scala b/remove_adjacent_almost_equal_characters/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..3275bc7f5dc012007ba81a682a03a6d9786a7a7d --- /dev/null +++ b/remove_adjacent_almost_equal_characters/scala_tests/MySuite.scala @@ -0,0 +1,36 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.removeAlmostEqualCharacters("aaaaa"), 2) + } + + test("test2") { + assertEquals(Main.removeAlmostEqualCharacters("abddez"), 2) + } + + test("test3") { + assertEquals(Main.removeAlmostEqualCharacters("zyxyxyz"), 3) + } + + test("test4") { + assertEquals(Main.removeAlmostEqualCharacters(",e,g,e,m,s,p,q,b,u,d,p,r,i,a,l,x,w,s,q,f,s,b,f,e,b,u,u,e,l,y,v,z,y,m,e,v,l,d,l,v,i,a,e,s,a,l,w,h,p,a,e,p,x,g,x,s,s,p,n,m,o,g,e,g,n,o,z,j,i,n,t,u,q,"), 10) + } + + test("test5") { + assertEquals(Main.removeAlmostEqualCharacters(",p,g,p,"), 0) + } + + test("test6") { + assertEquals(Main.removeAlmostEqualCharacters(",n,y,b,l,z,q,a,b,c,w,j,c,y,u,z,e,z,z,l,z,x,s,h,q,q,p,e,c,f,e,k,i,u,g,f,t,"), 5) + } + + test("test7") { + assertEquals(Main.removeAlmostEqualCharacters(",o,m,n,b,z,k,r,u,a,z,"), 1) + } + + test("test8") { + assertEquals(Main.removeAlmostEqualCharacters(",m,b,r,f,p,g,v,g,l,b,a,d,a,h,k,o,k,o,m,r,s,y,d,n,b,v,o,u,e,o,l,b,a,w,k,t,e,o,x,p,x,v,a,x,d,x,g,u,d,i,u,v,t,l,q,g,i,s,i,i,p,t,a,t,j,d,k,c,s,d,s,f,n,t,g,v,g,q,"), 5) + } + +} diff --git a/remove_digit_from_number_to_maximize_result/.DS_Store b/remove_digit_from_number_to_maximize_result/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..bfaede83c017b03b293cdb29d68bcfb317f68912 Binary files /dev/null and b/remove_digit_from_number_to_maximize_result/.DS_Store differ diff --git a/remove_digit_from_number_to_maximize_result/haskell_tests/Main.hs b/remove_digit_from_number_to_maximize_result/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..0c70b53097739a735f1227d79e9b57ec40b99b0e --- /dev/null +++ b/remove_digit_from_number_to_maximize_result/haskell_tests/Main.hs @@ -0,0 +1,27 @@ + +module Main where +import Test.HUnit + +--Program start + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (removeDigit \"123 \" \"3 \")," "12" (removeDigit "123" "3")) + +test2 :: Test +test2 = TestCase (assertEqual "for (removeDigit \"1231 \" \"1 \")," "231" (removeDigit "1231" "1")) + +test3 :: Test +test3 = TestCase (assertEqual "for (removeDigit \"551 \" \"5 \")," "51" (removeDigit "551" "5")) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/remove_digit_from_number_to_maximize_result/java_tests/Main.java b/remove_digit_from_number_to_maximize_result/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..ff6c9791e95f58d3d6f515ef5cc61c5ec3a7fdc8 --- /dev/null +++ b/remove_digit_from_number_to_maximize_result/java_tests/Main.java @@ -0,0 +1,25 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals("3", removeDigit("123", "3")); +} +@Test +public void test2() { + assertEquals("1", removeDigit("1231", "1")); +} +@Test +public void test3() { + assertEquals("5", removeDigit("551", "5")); +} + +} diff --git a/remove_digit_from_number_to_maximize_result/meta.json b/remove_digit_from_number_to_maximize_result/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..9ca1237f473fe1784c0d82be6a578053b2fa6ebb --- /dev/null +++ b/remove_digit_from_number_to_maximize_result/meta.json @@ -0,0 +1,102 @@ +{ + "id": 2337, + "name": "remove_digit_from_number_to_maximize_result", + "difficulty": "Easy", + "link": "https://leetcode.com/problems/remove-digit-from-number-to-maximize-result/", + "date": "1650758400000", + "task_description": "You are given a string `number` representing a **positive integer** and a character `digit`. Return _the resulting string after removing **exactly one occurrence** of _`digit`_ from _`number`_ such that the value of the resulting string in **decimal** form is **maximized**_. The test cases are generated such that `digit` occurs at least once in `number`. **Example 1:** ``` **Input:** number = \"123\", digit = \"3\" **Output:** \"12\" **Explanation:** There is only one '3' in \"123\". After removing '3', the result is \"12\". ``` **Example 2:** ``` **Input:** number = \"1231\", digit = \"1\" **Output:** \"231\" **Explanation:** We can remove the first '1' to get \"231\" or remove the second '1' to get \"123\". Since 231 > 123, we return \"231\". ``` **Example 3:** ``` **Input:** number = \"551\", digit = \"5\" **Output:** \"51\" **Explanation:** We can remove either the first or second '5' from \"551\". Both result in the string \"51\". ``` **Constraints:** `2 <= number.length <= 100` `number` consists of digits from `'1'` to `'9'`. `digit` is a digit from `'1'` to `'9'`. `digit` occurs at least once in `number`.", + "public_test_cases": [ + { + "label": "Example 1", + "input": "number = \"123\", digit = \"3\"", + "output": "\"12\" " + }, + { + "label": "Example 2", + "input": "number = \"1231\", digit = \"1\"", + "output": "\"231\" " + }, + { + "label": "Example 3", + "input": "number = \"551\", digit = \"5\"", + "output": "\"51\" " + } + ], + "private_test_cases": [ + { + "input": [ + "\"2374539441156399471819254369495132\"", + "\"6\"" + ], + "output": "237453944115639947181925439495132" + }, + { + "input": [ + "\"636978894914622392391618376488883813813127738671181386819783688775\"", + "\"3\"" + ], + "output": "66978894914622392391618376488883813813127738671181386819783688775" + }, + { + "input": [ + "\"77448812663961\"", + "\"6\"" + ], + "output": "7744881266391" + }, + { + "input": [ + "\"79387435792534198358183978554343923239548566731344594547149432687951348864418431584516\"", + "\"4\"" + ], + "output": "7938743579253419835818397855434392323958566731344594547149432687951348864418431584516" + }, + { + "input": [ + "\"4416339414133189318131987381972318426856179993\"", + "\"1\"" + ], + "output": "446339414133189318131987381972318426856179993" + }, + { + "input": [ + "\"483948427431225777289178433571992689847777823537268916929996628484814\"", + "\"9\"" + ], + "output": "48394842743122577728917843357199268984777782353726891692996628484814" + }, + { + "input": [ + "97758465227183942137521949981298741519469", + "4" + ], + "output": "9775865227183942137521949981298741519469" + }, + { + "input": [ + "44417558266855567561", + "2" + ], + "output": "4441755866855567561" + }, + { + "input": [ + "466331799818782912361716945291944426", + "8" + ], + "output": "46633179981872912361716945291944426" + }, + { + "input": [ + "42544683911351747388551259868923268826812642163249444326969715294695755866936737848459765288", + "4" + ], + "output": "4254683911351747388551259868923268826812642163249444326969715294695755866936737848459765288" + } + ], + "haskell_template": "removeDigit :: String -> String -> String\nremoveDigit number digit ", + "ocaml_template": "let removeDigit (number: string) (digit: string) : string = ", + "scala_template": "def removeDigit(number: String,digit: String): String = { \n \n}", + "java_template": "public static String removeDigit(String number, String digit) {\n\n}", + "python_template": "class Solution(object):\n def removeDigit(self, number, digit):\n \"\"\"\n :type number: str\n :type digit: str\n :rtype: str\n \"\"\"\n " +} \ No newline at end of file diff --git a/remove_digit_from_number_to_maximize_result/ocaml_tests/main.ml b/remove_digit_from_number_to_maximize_result/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..d4b8d0b0a075731ed2b9f3f1b7c1511fb39e852e --- /dev/null +++ b/remove_digit_from_number_to_maximize_result/ocaml_tests/main.ml @@ -0,0 +1,29 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal "12" (removeDigit "123" "3") + +let test2 _ = assert_equal "231" (removeDigit "1231" "1") + +let test3 _ = assert_equal "51" (removeDigit "551" "5") + + + (* Grouping test cases *) + let suite = "Test Suite for removeDigit" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + "test3" >:: test3; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/remove_digit_from_number_to_maximize_result/scala_tests/MySuite.scala b/remove_digit_from_number_to_maximize_result/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..d78d35e34112a59bfc474aaf98288e620d1fb940 --- /dev/null +++ b/remove_digit_from_number_to_maximize_result/scala_tests/MySuite.scala @@ -0,0 +1,16 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.removeDigit("123","3"), "12") + } + + test("test2") { + assertEquals(Main.removeDigit("1231","1"), "231") + } + + test("test3") { + assertEquals(Main.removeDigit("551","5"), "51") + } + +} diff --git a/remove_letter_to_equalize_frequency/.DS_Store b/remove_letter_to_equalize_frequency/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0df8494b84f17505f3118653dc163fd5f67b9832 Binary files /dev/null and b/remove_letter_to_equalize_frequency/.DS_Store differ diff --git a/remove_letter_to_equalize_frequency/haskell_tests/Main.hs b/remove_letter_to_equalize_frequency/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..1f96b4e56a16875257c511c546748a5b3249c79e --- /dev/null +++ b/remove_letter_to_equalize_frequency/haskell_tests/Main.hs @@ -0,0 +1,24 @@ + +module Main where +import Test.HUnit + +--Program start + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (equalFrequency \"abcc \")," True (equalFrequency "abcc")) + +test2 :: Test +test2 = TestCase (assertEqual "for (equalFrequency \"aazz \")," False (equalFrequency "aazz")) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/remove_letter_to_equalize_frequency/java_tests/Main.java b/remove_letter_to_equalize_frequency/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..7a768b814f9714c4bbdfb0439297b2bcea61e895 --- /dev/null +++ b/remove_letter_to_equalize_frequency/java_tests/Main.java @@ -0,0 +1,21 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(true, equalFrequency("abcc")); +} +@Test +public void test2() { + assertEquals(false, equalFrequency("aazz")); +} + +} diff --git a/remove_letter_to_equalize_frequency/meta.json b/remove_letter_to_equalize_frequency/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..a54f9a0c574c3414d3c82bf9d6afe1a466691c0a --- /dev/null +++ b/remove_letter_to_equalize_frequency/meta.json @@ -0,0 +1,67 @@ +{ + "id": 2532, + "name": "remove_letter_to_equalize_frequency", + "difficulty": "Easy", + "link": "https://leetcode.com/problems/remove-letter-to-equalize-frequency/", + "date": "1663372800000", + "task_description": "You are given a **0-indexed** string `word`, consisting of lowercase English letters. You need to select **one** index and **remove** the letter at that index from `word` so that the **frequency** of every letter present in `word` is equal. Return_ _`true`_ if it is possible to remove one letter so that the frequency of all letters in _`word`_ are equal, and _`false`_ otherwise_. **Note:** The frequency of a letter `x` is the number of times it occurs in the string. You **must** remove exactly one letter and cannot choose to do nothing. **Example 1:** ``` **Input:** word = \"abcc\" **Output:** true **Explanation:** Select index 3 and delete it: word becomes \"abc\" and each character has a frequency of 1. ``` **Example 2:** ``` **Input:** word = \"aazz\" **Output:** false **Explanation:** We must delete a character, so either the frequency of \"a\" is 1 and the frequency of \"z\" is 2, or vice versa. It is impossible to make all present letters have equal frequency. ``` **Constraints:** `2 <= word.length <= 100` `word` consists of lowercase English letters only.", + "public_test_cases": [ + { + "label": "Example 1", + "input": "word = \"abcc\"", + "output": "true " + }, + { + "label": "Example 2", + "input": "word = \"aazz\"", + "output": "false " + } + ], + "private_test_cases": [ + { + "input": "trvgjewrwhjyowlpufkffnsahxnjefyhtly", + "output": false + }, + { + "input": "ytjzklqahkyacwgajbmamraavlcfpldgygwauzvvojobqkeuvpgxmzgswzlskfjxwmuxonzpffpsegbbrtxnwizdottb", + "output": false + }, + { + "input": "bbdgqrazfakjvzdlj", + "output": false + }, + { + "input": "jvblsapeffjfwqcsgpbhzkooqng", + "output": false + }, + { + "input": "mhbutrqphctamehezfpdolirogihcfqisicjpvdzrhfvphshqtestgbgvjszojfkormijvcwxiqfhzpykjg", + "output": false + }, + { + "input": "vhnufzaasiqtazljrtvhgsxmthconncjojqwcriohbwwn", + "output": false + }, + { + "input": "hjuxmfeuffbsihrwlvaavitngeskenfzmxplbmlerxjlaayflvcvaovcrywsxkqmyud", + "output": false + }, + { + "input": "sveyvtvroocsnoobjqtxydrnriulutyjkbbvfiazesdqfgbvzoneucwgrnvcyimootoyaefqsnouxvtuebbrxmqoohioahyjyaj", + "output": false + }, + { + "input": "zplheoalkuxrueuichotb", + "output": false + }, + { + "input": "boglbnsaxrzlwxzxkalxvpjuhduttelbjabziotuejffjjstbsu", + "output": false + } + ], + "haskell_template": "equalFrequency :: String -> Bool\nequalFrequency word ", + "ocaml_template": "let equalFrequency (word: string) : bool = ", + "scala_template": "def equalFrequency(word: String): Boolean = { \n \n}", + "java_template": "public static boolean equalFrequency(String word) {\n\n}", + "python_template": "class Solution(object):\n def equalFrequency(self, word):\n \"\"\"\n :type word: str\n :rtype: bool\n \"\"\"\n " +} \ No newline at end of file diff --git a/remove_letter_to_equalize_frequency/ocaml_tests/main.ml b/remove_letter_to_equalize_frequency/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..1c7f8b3b7d5a8dfab9b94b473561f2d352ba6b67 --- /dev/null +++ b/remove_letter_to_equalize_frequency/ocaml_tests/main.ml @@ -0,0 +1,26 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal true (equalFrequency "abcc") + +let test2 _ = assert_equal false (equalFrequency "aazz") + + + (* Grouping test cases *) + let suite = "Test Suite for equalFrequency" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/remove_letter_to_equalize_frequency/scala_tests/MySuite.scala b/remove_letter_to_equalize_frequency/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..f112e8da1e5a015ea9f45785d37b56b5ac40ab80 --- /dev/null +++ b/remove_letter_to_equalize_frequency/scala_tests/MySuite.scala @@ -0,0 +1,12 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.equalFrequency("abcc"), true) + } + + test("test2") { + assertEquals(Main.equalFrequency("aazz"), false) + } + +} diff --git a/remove_methods_from_project/haskell_tests/Main.hs b/remove_methods_from_project/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..b3c2c61f0549c2f2f4967d03dc241c53c24aac3b --- /dev/null +++ b/remove_methods_from_project/haskell_tests/Main.hs @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7c270e01e63bc3fbbfb4480c306909c16422ba7659563a3a85a3d521a9b02e6 +size 11325867 diff --git a/remove_methods_from_project/java_tests/Main.java b/remove_methods_from_project/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..c0eaf7197d6834c1f9512cae84c059ef05030676 --- /dev/null +++ b/remove_methods_from_project/java_tests/Main.java @@ -0,0 +1,25 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(new ArrayList<>(Arrays.asList(0,1,2,3)), remainingMethods(4, 1, new ArrayList<>(Arrays.asList(new ArrayList<>(Arrays.asList(1,2)),new ArrayList<>(Arrays.asList(0,1)),new ArrayList<>(Arrays.asList(3,2)))))); +} +@Test +public void test2() { + assertEquals(new ArrayList<>(Arrays.asList(3,4)), remainingMethods(5, 0, new ArrayList<>(Arrays.asList(new ArrayList<>(Arrays.asList(1,2)),new ArrayList<>(Arrays.asList(0,2)),new ArrayList<>(Arrays.asList(0,1)),new ArrayList<>(Arrays.asList(3,4)))))); +} +@Test +public void test3() { + assertEquals(new ArrayList<>(), remainingMethods(3, 2, new ArrayList<>(Arrays.asList(new ArrayList<>(Arrays.asList(1,2)),new ArrayList<>(Arrays.asList(0,1)),new ArrayList<>(Arrays.asList(2,0)))))); +} + +} diff --git a/remove_methods_from_project/meta.json b/remove_methods_from_project/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..01ec6a09bff42602c6e0f41a11eeb7c091a597d9 --- /dev/null +++ b/remove_methods_from_project/meta.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8058affec7e83f925664dfb24e8fc8b32e7bf464a048bc766f9a702090e95cec +size 123544277 diff --git a/remove_methods_from_project/ocaml_tests/main.ml b/remove_methods_from_project/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..b3c2c61f0549c2f2f4967d03dc241c53c24aac3b --- /dev/null +++ b/remove_methods_from_project/ocaml_tests/main.ml @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7c270e01e63bc3fbbfb4480c306909c16422ba7659563a3a85a3d521a9b02e6 +size 11325867 diff --git a/remove_methods_from_project/scala_tests/MySuite.scala b/remove_methods_from_project/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..15a0f7211f56c1ab56d8d43deeeb261efbe64a9e --- /dev/null +++ b/remove_methods_from_project/scala_tests/MySuite.scala @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e361ad07ee607bb5d830e8bdebd790b9ccf2a5736545d8722ebc5084a8baff4 +size 14397010 diff --git a/remove_trailing_zeros_from_a_string/haskell_tests/Main.hs b/remove_trailing_zeros_from_a_string/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..33831b205f99ac4f5ca536f8ca44f80cf8375483 --- /dev/null +++ b/remove_trailing_zeros_from_a_string/haskell_tests/Main.hs @@ -0,0 +1,41 @@ + +module Main where +import Test.HUnit + +--Program start +removeTrailingZeros :: String -> String +removeTrailingZeros num = undefined + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (removeTrailingZeros \"51230100 \")," "512301" (removeTrailingZeros "51230100")) + +test2 :: Test +test2 = TestCase (assertEqual "for (removeTrailingZeros \"123 \")," "123" (removeTrailingZeros "123")) + +test3 :: Test +test3 = TestCase (assertEqual "for (removeTrailingZeros \"697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826 \")," "697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826" (removeTrailingZeros "697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826")) + +test4 :: Test +test4 = TestCase (assertEqual "for (removeTrailingZeros \"25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862 \")," "25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862" (removeTrailingZeros "25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862")) + +test5 :: Test +test5 = TestCase (assertEqual "for (removeTrailingZeros \"562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629000 \")," "562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629" (removeTrailingZeros "562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629000")) + +test6 :: Test +test6 = TestCase (assertEqual "for (removeTrailingZeros \"31354259000 \")," "31354259" (removeTrailingZeros "31354259000")) + +test7 :: Test +test7 = TestCase (assertEqual "for (removeTrailingZeros \"175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682 \")," "175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682" (removeTrailingZeros "175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682")) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1, TestLabel "Test2" test2, TestLabel "Test3" test3, TestLabel "Test4" test4, TestLabel "Test5" test5, TestLabel "Test6" test6] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/remove_trailing_zeros_from_a_string/java_tests/Main.java b/remove_trailing_zeros_from_a_string/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..c7690b7d4b8d0942f4c329ad82c0e0967744b8be --- /dev/null +++ b/remove_trailing_zeros_from_a_string/java_tests/Main.java @@ -0,0 +1,20 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals("51230100", removeTrailingZeros("51230100")); +} +@Test +public void test2() { + assertEquals("123", removeTrailingZeros("123")); +} + +} diff --git a/remove_trailing_zeros_from_a_string/meta.json b/remove_trailing_zeros_from_a_string/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..8a67b1c8021680c60e5c46d5b36bb64df172434e --- /dev/null +++ b/remove_trailing_zeros_from_a_string/meta.json @@ -0,0 +1,47 @@ +{ + "id": 2819, + "name": "remove_trailing_zeros_from_a_string", + "difficulty": "Easy", + "link": "https://leetcode.com/problems/remove-trailing-zeros-from-a-string/", + "date": "2023-05-21 00:00:00", + "task_description": "Given a **positive** integer `num` represented as a string, return _the integer _`num`_ without trailing zeros as a string_. **Example 1:** ``` **Input:** num = \"51230100\" **Output:** \"512301\" **Explanation:** Integer \"51230100\" has 2 trailing zeros, we remove them and return integer \"512301\". ``` **Example 2:** ``` **Input:** num = \"123\" **Output:** \"123\" **Explanation:** Integer \"123\" has no trailing zeros, we return integer \"123\". ``` **Constraints:** `1 <= num.length <= 1000` `num` consists of only digits. `num` doesn't have any leading zeros.", + "public_test_cases": [ + { + "label": "Example 1", + "input": "num = \"51230100\"", + "output": "\"512301\" " + }, + { + "label": "Example 2", + "input": "num = \"123\"", + "output": "\"123\" " + } + ], + "private_test_cases": [ + { + "input": "697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826", + "output": "697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826" + }, + { + "input": "25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862", + "output": "25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862" + }, + { + "input": "562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629000", + "output": "562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629" + }, + { + "input": "31354259000", + "output": "31354259" + }, + { + "input": "175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682", + "output": "175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682" + } + ], + "haskell_template": "removeTrailingZeros :: String -> String\nremoveTrailingZeros num ", + "ocaml_template": "let removeTrailingZeros (num: string) : string = ", + "scala_template": "def removeTrailingZeros(num: String): String = { \n \n}", + "java_template": "class Solution {\n public String removeTrailingZeros(String num) {\n \n }\n}", + "python_template": "class Solution(object):\n def removeTrailingZeros(self, num):\n \"\"\"\n :type num: str\n :rtype: str\n \"\"\"\n " +} \ No newline at end of file diff --git a/remove_trailing_zeros_from_a_string/ocaml_tests/main.ml b/remove_trailing_zeros_from_a_string/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..c4316650cc135a7ea55c1dcef681e1f5c5f069bb --- /dev/null +++ b/remove_trailing_zeros_from_a_string/ocaml_tests/main.ml @@ -0,0 +1,42 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + let removeTrailingZeros (num: string) : string = failwith "Not implemented" + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal "512301" (removeTrailingZeros "51230100") + +let test2 _ = assert_equal "123" (removeTrailingZeros "123") + +let test3 _ = assert_equal "123" (removeTrailingZeros "697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826") + +let test4 _ = assert_equal "123" (removeTrailingZeros "25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862") + +let test5 _ = assert_equal "123" (removeTrailingZeros "562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629000") + +let test6 _ = assert_equal "123" (removeTrailingZeros "31354259000") + +let test7 _ = assert_equal "123" (removeTrailingZeros "175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682") + + + (* Grouping test cases *) + let suite = "Test Suite for removeTrailingZeros" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + "test3" >:: test3; + "test4" >:: test4; + "test5" >:: test5; + "test6" >:: test6; + "test7" >:: test7; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end diff --git a/remove_trailing_zeros_from_a_string/scala_tests/MySuite.scala b/remove_trailing_zeros_from_a_string/scala_tests/MySuite.scala new file mode 100644 index 0000000000000000000000000000000000000000..4ede5009ae3997009c70337490712cfdaf0c83df --- /dev/null +++ b/remove_trailing_zeros_from_a_string/scala_tests/MySuite.scala @@ -0,0 +1,32 @@ + +class MySuite extends munit.FunSuite { + + test("test1") { + assertEquals(Main.removeTrailingZeros("51230100"), "512301") + } + + test("test2") { + assertEquals(Main.removeTrailingZeros("123"), "123") + } + + test("test3") { + assertEquals(Main.removeTrailingZeros(",6,9,7,5,3,0,6,2,8,8,2,8,8,6,9,8,0,3,1,3,6,4,4,1,2,6,4,1,8,4,7,8,0,8,2,8,7,9,2,1,6,9,9,8,4,3,7,6,5,0,1,0,8,5,1,4,6,0,7,4,5,2,5,2,7,9,1,5,4,4,6,9,0,8,8,5,7,3,5,3,1,7,1,3,9,5,9,3,7,1,6,9,5,1,3,7,0,7,6,9,8,0,3,6,4,0,8,2,3,2,9,3,1,8,5,6,9,5,8,9,3,5,0,4,5,2,4,9,2,8,4,7,9,2,5,5,2,6,5,1,1,7,6,2,5,1,2,7,9,1,4,0,9,4,8,4,8,0,1,0,9,6,0,0,1,8,0,1,0,3,4,6,2,9,4,5,7,6,2,9,4,5,3,4,0,9,8,8,1,7,8,0,6,9,4,3,3,4,0,1,4,5,6,2,2,7,2,3,9,9,4,9,9,0,5,0,5,0,5,5,1,8,0,4,6,5,0,5,7,0,9,3,1,1,1,9,9,2,8,9,4,4,9,8,2,4,9,2,7,3,7,9,0,9,4,9,6,7,0,2,6,2,3,4,9,4,5,9,6,7,8,6,0,1,2,2,3,8,6,8,8,0,0,4,1,9,0,7,0,1,5,3,0,4,7,5,6,3,2,2,1,2,3,8,2,2,6,0,6,4,8,5,4,2,3,8,8,7,1,6,8,3,9,4,5,8,1,8,2,8,7,0,6,0,4,3,0,9,3,2,8,7,8,7,7,6,0,4,1,8,6,2,7,7,2,8,7,1,3,4,8,1,7,7,6,1,3,1,7,4,6,6,5,9,9,7,9,5,0,0,2,9,7,7,9,2,0,1,4,2,8,7,0,5,6,5,9,5,6,5,2,7,8,5,1,9,6,8,3,8,3,0,1,9,5,6,2,2,4,6,3,8,9,0,3,0,6,0,2,1,5,9,9,4,7,6,8,4,6,1,2,0,6,1,7,1,4,4,2,8,9,8,4,3,1,4,7,8,7,8,1,3,9,4,8,7,9,2,4,7,7,5,7,4,1,1,4,2,2,9,2,8,6,6,8,2,5,8,6,0,4,4,2,8,7,4,4,5,9,9,3,5,8,0,9,5,5,5,0,1,0,0,4,1,9,2,4,4,3,8,3,9,0,8,8,8,5,5,8,6,2,3,0,5,3,7,6,5,5,2,5,3,7,6,6,0,3,3,0,3,0,0,9,5,0,0,0,8,2,4,3,0,6,8,6,8,1,7,1,3,4,8,6,5,9,8,3,7,4,6,5,8,9,5,9,5,4,6,6,5,9,9,4,3,8,3,8,1,6,1,7,8,1,2,4,0,6,3,0,5,0,4,9,0,2,0,1,7,6,5,8,4,5,7,8,8,5,7,0,4,5,1,1,6,0,8,2,2,9,7,5,5,9,7,5,0,4,4,5,9,1,8,4,3,7,6,7,5,6,4,6,9,4,3,9,4,0,0,2,1,6,4,9,0,1,2,7,1,4,4,2,5,2,8,5,8,1,7,7,2,1,4,5,5,0,1,7,4,5,1,1,2,6,8,7,8,4,8,2,7,3,5,5,2,8,2,8,6,9,3,7,2,7,0,4,3,2,8,7,6,3,0,9,3,0,3,2,0,4,0,8,7,5,3,5,5,3,4,5,6,0,0,5,7,5,5,8,5,0,6,7,7,5,3,9,6,5,4,7,0,8,2,2,5,9,0,9,3,4,3,7,8,1,4,5,8,0,3,1,3,1,2,6,7,7,2,6,5,7,0,5,3,5,2,4,4,3,3,2,9,0,3,7,0,0,5,7,1,1,9,5,2,4,2,3,3,8,5,3,2,4,6,4,9,7,6,4,9,0,3,8,2,6,"), "697530628828869803136441264184780828792169984376501085146074525279154469088573531713959371695137076980364082329318569589350452492847925526511762512791409484801096001801034629457629453409881780694334014562272399499050505518046505709311199289449824927379094967026234945967860122386880041907015304756322123822606485423887168394581828706043093287877604186277287134817761317466599795002977920142870565956527851968383019562246389030602159947684612061714428984314787813948792477574114229286682586044287445993580955501004192443839088855862305376552537660330300950008243068681713486598374658959546659943838161781240630504902017658457885704511608229755975044591843767564694394002164901271442528581772145501745112687848273552828693727043287630930320408753553456005755850677539654708225909343781458031312677265705352443329037005711952423385324649764903826") + } + + test("test4") { + assertEquals(Main.removeTrailingZeros(",2,5,2,6,4,4,1,0,6,2,8,8,8,1,4,4,6,0,3,8,6,3,7,2,5,6,3,1,1,4,5,5,4,3,5,3,1,8,2,7,1,1,4,9,5,0,2,5,2,1,3,1,5,8,0,5,8,2,0,7,0,9,0,2,2,0,7,3,7,3,7,2,7,6,0,5,4,7,4,6,6,8,3,1,2,5,6,4,1,6,6,5,2,3,8,5,9,9,4,4,5,4,4,5,4,9,5,4,5,9,0,6,9,6,7,1,4,3,4,8,1,5,4,7,4,6,2,2,7,4,8,8,5,9,5,7,6,9,7,5,4,1,2,3,3,7,3,3,7,2,8,7,0,4,6,9,8,1,8,3,5,3,5,6,8,9,4,3,3,5,5,5,2,2,7,9,7,4,2,8,0,7,3,2,7,3,6,7,1,5,4,0,2,4,2,5,1,5,9,8,1,9,3,5,3,2,7,7,2,4,7,6,1,4,3,0,7,4,8,0,7,4,9,2,4,5,2,3,8,3,5,1,5,7,2,2,9,5,1,9,9,8,8,6,2,"), "25264410628881446038637256311455435318271149502521315805820709022073737276054746683125641665238599445445495459069671434815474622748859576975412337337287046981835356894335552279742807327367154024251598193532772476143074807492452383515722951998862") + } + + test("test5") { + assertEquals(Main.removeTrailingZeros(",5,6,2,3,4,0,7,8,3,1,0,4,6,4,4,8,3,1,4,4,9,1,2,7,8,6,3,1,7,7,5,6,0,6,2,2,5,7,4,1,4,3,9,8,5,7,3,1,7,6,2,2,2,6,4,4,2,1,3,3,8,1,3,7,1,6,0,1,1,5,3,1,9,9,5,7,0,5,8,3,8,1,3,5,2,8,4,1,9,9,3,8,1,5,0,5,1,2,1,2,4,3,8,0,6,9,6,7,3,9,8,5,0,6,8,2,0,5,7,9,6,9,3,9,0,2,8,6,1,2,4,6,0,3,1,2,6,5,4,0,2,5,4,2,0,1,9,5,6,6,6,5,6,5,0,8,9,3,2,4,0,8,1,9,5,7,5,2,8,6,9,6,7,7,3,3,7,8,8,2,7,9,9,9,1,2,6,5,9,7,5,6,9,4,2,0,7,9,6,8,0,1,4,5,6,4,3,1,5,8,4,9,7,9,8,8,2,5,2,3,4,5,6,2,1,1,8,3,6,2,0,9,2,8,3,7,2,4,9,0,0,6,6,6,4,4,6,2,2,9,5,1,8,0,5,8,8,2,8,0,0,6,5,9,3,0,9,4,1,3,0,4,9,4,4,1,5,4,2,9,2,6,9,3,8,7,5,0,9,7,2,9,7,9,4,0,7,7,9,7,9,9,2,7,2,3,6,4,6,9,9,9,9,4,5,0,5,1,8,7,2,7,8,0,2,5,6,1,2,3,3,8,6,9,8,8,5,4,6,8,8,2,7,4,0,8,8,4,4,9,0,6,1,2,3,8,1,2,8,5,7,4,4,2,6,4,0,9,5,8,3,8,7,6,1,5,9,0,3,0,0,5,3,1,0,5,8,9,1,4,4,2,3,0,2,7,5,6,3,1,6,2,1,3,1,9,6,5,0,5,7,2,2,4,5,9,9,2,4,2,6,1,2,8,7,9,8,3,3,5,4,8,6,2,8,9,5,2,6,0,9,9,1,0,8,4,4,0,5,2,1,2,5,8,4,4,9,2,4,4,5,0,1,4,5,9,3,5,7,9,3,8,7,1,4,8,2,1,6,7,2,2,9,2,8,7,0,1,9,4,5,2,9,3,8,0,4,5,4,6,8,1,6,0,6,2,2,5,8,5,1,0,6,0,6,4,4,5,5,7,7,6,9,5,1,1,8,5,7,4,4,8,1,2,1,3,4,3,3,4,5,8,7,7,8,9,5,3,8,5,4,5,2,3,9,8,3,1,9,1,8,7,5,3,3,8,4,4,9,2,9,5,8,1,8,5,2,2,3,7,8,5,8,1,3,3,7,9,5,2,4,7,0,4,9,4,6,0,9,4,0,4,3,5,6,7,9,8,3,1,9,2,7,2,8,9,4,0,5,7,6,2,2,1,6,1,4,1,8,7,3,2,3,7,5,1,3,8,2,7,3,7,3,1,0,5,5,6,9,5,1,8,8,0,1,9,3,6,2,9,0,0,0,"), "562340783104644831449127863177560622574143985731762226442133813716011531995705838135284199381505121243806967398506820579693902861246031265402542019566656508932408195752869677337882799912659756942079680145643158497988252345621183620928372490066644622951805882800659309413049441542926938750972979407797992723646999945051872780256123386988546882740884490612381285744264095838761590300531058914423027563162131965057224599242612879833548628952609910844052125844924450145935793871482167229287019452938045468160622585106064455776951185744812134334587789538545239831918753384492958185223785813379524704946094043567983192728940576221614187323751382737310556951880193629") + } + + test("test6") { + assertEquals(Main.removeTrailingZeros(",3,1,3,5,4,2,5,9,0,0,0,"), "31354259") + } + + test("test7") { + assertEquals(Main.removeTrailingZeros(",1,7,5,2,6,8,6,2,0,3,8,0,4,2,8,9,9,6,3,9,8,3,1,8,6,1,6,8,1,4,0,8,4,4,4,7,5,3,0,9,4,7,0,6,7,4,9,5,8,9,2,1,7,1,7,8,4,0,6,7,0,1,0,5,5,4,5,8,2,9,9,0,3,4,4,5,0,9,2,9,3,0,0,3,1,3,4,9,7,8,7,0,3,0,9,9,8,1,3,3,8,9,3,2,1,1,3,1,2,5,6,0,4,6,3,3,3,4,6,5,5,0,9,0,4,8,8,5,7,3,5,8,3,5,3,1,2,6,7,5,7,0,7,4,0,7,8,0,7,4,9,3,8,7,7,2,2,9,6,7,1,1,3,2,2,9,7,7,2,1,6,5,5,7,3,7,8,4,7,1,5,8,7,2,3,9,4,7,5,8,7,5,8,3,6,8,1,8,9,0,2,8,6,7,9,9,7,0,4,3,4,2,8,1,6,5,0,6,3,9,7,0,8,1,3,6,3,1,0,4,1,5,1,1,5,4,6,1,2,4,4,0,1,3,1,9,5,2,2,2,5,4,8,6,5,6,9,7,9,7,0,4,1,1,7,2,7,6,3,5,9,1,4,0,1,8,4,1,4,0,1,6,2,8,0,8,4,8,4,1,4,1,4,0,7,7,8,2,0,7,3,1,5,9,6,7,6,9,5,1,7,7,3,7,4,4,9,8,7,6,5,8,4,8,8,8,0,6,4,0,8,0,6,2,0,5,7,5,4,9,8,1,9,8,9,8,0,4,2,6,1,0,8,7,7,6,5,0,3,9,1,0,0,5,7,9,2,9,6,7,9,9,1,4,7,0,7,9,7,9,2,9,9,7,7,2,1,6,7,7,6,7,0,7,1,5,9,1,8,4,4,6,6,1,2,2,1,4,0,9,0,0,1,0,0,4,6,3,5,5,9,8,0,5,3,6,5,7,6,7,8,5,2,8,2,4,0,1,3,6,4,0,2,5,9,2,4,3,4,4,5,7,8,9,6,8,9,2,5,5,6,6,7,4,5,4,2,1,0,4,0,2,1,9,1,1,9,6,8,2,"), "175268620380428996398318616814084447530947067495892171784067010554582990344509293003134978703099813389321131256046333465509048857358353126757074078074938772296711322977216557378471587239475875836818902867997043428165063970813631041511546124401319522254865697970411727635914018414016280848414140778207315967695177374498765848880640806205754981989804261087765039100579296799147079792997721677670715918446612214090010046355980536576785282401364025924344578968925566745421040219119682") + } + +} diff --git a/removing_minimum_number_of_magic_beans/.DS_Store b/removing_minimum_number_of_magic_beans/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e5d82ff1fef1205365dba2a0bb148887a0998411 Binary files /dev/null and b/removing_minimum_number_of_magic_beans/.DS_Store differ diff --git a/removing_minimum_number_of_magic_beans/haskell_tests/Main.hs b/removing_minimum_number_of_magic_beans/haskell_tests/Main.hs new file mode 100644 index 0000000000000000000000000000000000000000..a08142ae57af8dafec61a4bc68b33d5d0d25ffc3 --- /dev/null +++ b/removing_minimum_number_of_magic_beans/haskell_tests/Main.hs @@ -0,0 +1,24 @@ + +module Main where +import Test.HUnit + +--Program start + +--Program end + +-- Test cases + +test1 :: Test +test1 = TestCase (assertEqual "for (minimumRemoval [4,1,6,5])," 4 (minimumRemoval [4,1,6,5])) + +test2 :: Test +test2 = TestCase (assertEqual "for (minimumRemoval [2,10,3,2])," 7 (minimumRemoval [2,10,3,2])) + + +-- Grouping test cases +tests :: Test +tests = TestList [TestLabel "Test1" test1] + +-- Running the tests +main :: IO Counts +main = runTestTT tests diff --git a/removing_minimum_number_of_magic_beans/java_tests/Main.java b/removing_minimum_number_of_magic_beans/java_tests/Main.java new file mode 100644 index 0000000000000000000000000000000000000000..753d39d0fe3deba606fb187a5145d2defed5556e --- /dev/null +++ b/removing_minimum_number_of_magic_beans/java_tests/Main.java @@ -0,0 +1,21 @@ + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; +import java.util.List; +import java.util.Arrays; +import java.util.ArrayList; +public class Main { + //Program start + + //Program end + + @Test +public void test1() { + assertEquals(4, minimumRemoval(new ArrayList<>(Arrays.asList(4,1,6,5)))); +} +@Test +public void test2() { + assertEquals(7, minimumRemoval(new ArrayList<>(Arrays.asList(2,10,3,2)))); +} + +} diff --git a/removing_minimum_number_of_magic_beans/meta.json b/removing_minimum_number_of_magic_beans/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..ed54e25ed6e381cd88e48662929174113f9e2cbb --- /dev/null +++ b/removing_minimum_number_of_magic_beans/meta.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b09e254f35994db813f50e3e800406b1475a5fa7b4491195c3d1d2991854721c +size 11801111 diff --git a/removing_minimum_number_of_magic_beans/ocaml_tests/main.ml b/removing_minimum_number_of_magic_beans/ocaml_tests/main.ml new file mode 100644 index 0000000000000000000000000000000000000000..49d86499a98412bb6e8eddbc7f07a279f1d0cee1 --- /dev/null +++ b/removing_minimum_number_of_magic_beans/ocaml_tests/main.ml @@ -0,0 +1,26 @@ + +module Main = struct + open OUnit2 + + (* Program start *) + + (* Program end *) + + (* Test cases *) + +let test1 _ = assert_equal 4 (minimumRemoval [4;1;6;5]) + +let test2 _ = assert_equal 7 (minimumRemoval [2;10;3;2]) + + + (* Grouping test cases *) + let suite = "Test Suite for minimumRemoval" >::: [ + + "test1" >:: test1; + "test2" >:: test2; + ] + + + (* Running the tests *) + let () = run_test_tt_main suite +end