{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0015","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"ade7b55151527a3deee5ca1434bee8d379e3bb237dd779de03319398cf7fce4a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, double it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0023","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b77bdd39b0553f526671ee88201955e79d87b6494819f6c00c76ab30e324217e"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, square it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0024","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0d95f52f5088fefd4f8c192de3db4a6065ef8dd61fbf5d795f65800b9e89ebc6"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove vowels aeiou in either case, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hLL","input":"Hello"},{"expected":" cD ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0025","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"07ddda8434ac5983b5a6c0b67c87a8da516445cf349889e927de0268c1dedc9a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the last decimal digit of its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0028","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0ccf8a670ac5e4c470cf7c7e01028d21926f080204e605498a42f4b9e2e0517a"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0033","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"9bbed522c596aca42bc66c8aa1f0af146d6f9c1513f011173cb38803ea95277c"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, negate it, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":-1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0038","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"218a84dbeae54517f8506fe1b254e103c9b6db0e1929fd0ebf0e2d7c7f1394f4"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0041","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7557df22757920b1370cd2d746458d631f38d05996a8d72a92c28422d0cf0b90"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace negative values with zero, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0054","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"ccc0fa988c623cda4908f86f653c6376bde36ae1930cd4319dad76c89deeb71e"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"H","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0056","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"480bcb355f50cb4c57c84eaf826c62f1dcc1c6460e896c8072939cd2a431f389"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"e","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0068","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"3749d01f065413cf384d701c668109228e967352ca115233b801d988d77f8cd1"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0069","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"81f7c3bf02fa7312be2dfa73953f89d6a6a642505bcb65bc7d73c4205c68f81f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if even, otherwise 0, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":9,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0075","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"43cd9321b89b1aa77cf6354f75dc2282eff3119666883e76907ddc8f84bb5d17"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":5,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0076","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"2a9046e7cb741792703a089c5b76b636228749b6785a4b0ecb3ff0fcb23ff042"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0082","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"430ffa41c7f56109785a7de23d8020e88c92be5608727580a734671b4e508c2a"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, remove leading and trailing spaces, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0098","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"ffc1dec30a21e634f9ccf70156331bd52f21220b955f42f2f032634c597deca1"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep only ASCII letters, then keep only decimal digits. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0101","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"73a609df81776070227a30f0bc78bbdb2c739728f1ff7f43f29ada82f759c05a"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, replace it with 1 if negative, otherwise 0, then double it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0107","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"3ca1fdde7f6a21e4364bf1f85bc0bed67e32b154d6c427f187196158f230e06f"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take the tens digit of its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0108","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"d0fe6923b7cbbe3ec508fa7ee1adaa7d8c9154e032220744a9704f9b9ad424e5"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep the first floor(length/2) characters, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0113","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"503f50fc6029dfb81c0fc3a51b54fe4565d3d6519ffc96331d93b38831befd33"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0114","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"7fd4f345cddab601e1593c22922d6d8e1529881e51e026ed877e29d16abcf954"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0131","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"2e87ded0393ebf5467e8f166d370b3a13d64e2922587427de7e93e828ea8dedc"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, take its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0134","language":"python","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"e4743c0d060cd8601652e269282204bff11ffa4d199d18276d770ec2bf48b28c"},"output_format":"Return only the function def solve(s: str) -> str:. Do not include a main program.","prompt":"In Python, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"lo","input":"Hello"},{"expected":"e ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0135","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"16c9cd1bf71a9676211614dc2a6d48d9461a10bb4f0631b8ccd28aec1edd016d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0141","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"a31b972bf1014a3518692605ad00fa6e34b404b88618073897b02cb7abc0949d"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, clamp it to the inclusive range -5 to 5, then square it. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-python-0149","language":"python","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"fb14e2b0c1137f95614874f05cf40fac1316cf99de85a85bad920aba89bc0a85"},"output_format":"Return only the function def solve(n: int) -> int:. Do not include a main program.","prompt":"In Python, Starting with n, subtract it from ten, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-7,"input":3},{"expected":-12,"input":-2}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0153","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"78ccaeffcfcd1390bf6fc35b5de737c68e7996b2418298a555ca096e8ae741db"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0160","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"5795ba18d9c352b3ff5f359d5207c4d2db5273d93e83dbee9fe730a0a65723e7"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0174","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"aca942244b229e6116e03151ae7b0c7dc2c751541ded11ac5fab6660280cb7cb"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select negative items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0176","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"61b49dd4a5f152f66623eae3169aebebd3834749c679fc2806a5efee3cc892ed"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0177","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"cc21e21b31751e7ce9b2f0e58985ef579f9a9f55587805c06f6bb6c2197a54ca"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0183","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"96ecc563a3584cd4d5eeaf7f89f323615da9907a3a2fc5cf8591967cdce01193"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0184","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"05f6b33b0652652ac924c504d5400a6640432aea69496667c54e3aa19cd3dc1e"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0188","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f437c8993c06242e214012b3399712402c921df3413b8fcc512dd5c9a2780b1c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0194","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7a6b74dc469888abf098fd491b72a21ec161b590a03dd45c655e6451877e834c"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0209","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"46dcbed0fee0e641638a90742e0cfe6a6d58b613b577fe58644d751b5471cf28"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0213","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"053eebb9d6b4756bb9f4208b9bed3718c42e493856dd532d2d9c4c98a32a5939"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select nonzero items from values in original order. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0219","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"a02da41d0bc3b6898cf528607d4186fa97164a3185e8c82451d5c3755a625106"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items with absolute value greater than three from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-python-0222","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"bb12e9352008efbb8bf227bb894b2b401b693ad7c0057ac7bc05b934a5a6a3bb"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select even items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0226","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"85c9c0d5316b01f6e69ea5a711697bc201f89aec76f437c0833a1564d8c4e028"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at odd zero-based indices from values in original order. For each selected item, double it. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0229","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"158d312c4c7ead897ef95ed09e4bbab735a99faf342197b64e62c720f8309f92"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select odd items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0236","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"97644ff51265013b810abe08d4dd141473cb6cb05daf458dcb176294ebe6a218"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select positive items from values in original order. For each selected item, square it. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0237","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7855867b78c8421e299b7eaa78f023d5998cf9f7ff94b505c02342acfa61116a"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select all items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their maximum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-python-0238","language":"python","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"aa22d5ce24befd134488633bd13f5fd67ceaa5a1ec7f49a6e1f66fc2bcd46f47"},"output_format":"Return only the function def solve(values: list[int]) -> int:. Do not include a main program.","prompt":"In Python, Select items at even zero-based indices from values in original order. For each selected item, negate it. Return their sum. ","reference_solution":null,"tests":[{"expected":-4,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0010","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"04fce02d3df37668b5ee9fabc2d0441dc7a0eb557350bd486baf253231362acc"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, replace each run of spaces with one space, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":" Co","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0012","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"10069624bbc5e4e1a58db9892ea51959ae2c1942957071fd44543ea745a266a8"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"OLLEH","input":"Hello"},{"expected":" EDOC ","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0014","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"d3aea9cc9e4a27c3e9bac6582ec1b9f9405e860b2a5062e845937c1d8909d0f6"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"ll","input":"Hello"},{"expected":"d ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0015","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"ade7b55151527a3deee5ca1434bee8d379e3bb237dd779de03319398cf7fce4a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0017","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"9a7c80ba874fd76ffdde6dcd7c801961ed511a4842aca48e902cea7de11eedde"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take its absolute value, then add one. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0027","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"1a409a0d60eb042b3fb93b2451cf30644a2d0f7275f51bcdda85e780da5e429c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0030","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cca9cb316b095a5f43e5d501020f1a2560fabd1ab6d01cc7e014bc3c85b471cf"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0031","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"cbc3e1dfa44187921111ce071b1fd55eeec1d1f77517fe5b8eaccbd2ee904204"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0036","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"fb07691abbab941c2d2e2cab38a82e610294cbe906aa35ebe58632b714cf3059"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep characters from index floor(length/2) onward, then replace each run of spaces with one space. Return the result.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0037","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"8fc3d5ec8a58bb8ed037c95243b39e138bc3db6caeb23e3b3d3f051205043c5d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then replace it with 1 if negative, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0040","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"301490a47015f36166dd72b4b697e4aff2553ea17c9f51e162094b927c93511e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0044","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f6eb4ff056851f5303af3a4786f7d30769b2811bedeacdf791669495e1d8f4d8"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0051","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"19cb30424ca4502257c78aa702f50371fdaa20d55720258943468f6cd3f4338a"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the last decimal digit of its absolute value, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0052","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"d1a544f56b047ae4177c8da41a5b763bf4da168893ec4be53a547886b3b10d59"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove vowels aeiou in either case, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0055","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"639a0b435f428660ce84397ec135bd2c272c380c127678f73015bfc6c1ad18e2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0065","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"255e8c11474e0b1dab4cf157b14f5eebed34011215128a194776f0ca9b68a088"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":14,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0096","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"e533501c80778ea11cdea8dd707e77585dcd25d5c047f485c6459155db83dfa7"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep the first floor(length/2) characters, then reverse the characters. Return the result.","reference_solution":null,"tests":[{"expected":"eH","input":"Hello"},{"expected":"C ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0097","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"696da44f39e4f5cae04885b8ffeac48c8965adb71666c160f3543c1a48384073"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, double it, then square it. Return the result.","reference_solution":null,"tests":[{"expected":36,"input":3},{"expected":16,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0102","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f652e3fd3aea7f1ee9b2a7d98183fa328ab9c951d1f65af3531225693c51f99e"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, reverse the characters, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"leH","input":"Hello"},{"expected":"oC ","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0111","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"58eab35676e9b4ec23ccb1ce11d27e1f6a42dc625ce5ce6cddb3be3a33f2714d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0116","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"fa9003f7c513422aa682419cb9801d44a1cd3352fdce2ca766089e8508d6dc5d"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, remove leading and trailing spaces, then keep only ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0118","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6431a94b41c9e16be570f8f286016b83aa5ba32fd5c5332f551a644377c620ea"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"HE","input":"Hello"},{"expected":" C","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0123","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"d43630a01a001b34982d03e0bb237fde74f72b0ec44b5cbc1d5305cefb6868b1"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, take the tens digit of its absolute value, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3} {"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0124","language":"javascript","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"8b592c7adf270a7a4db3f93c3cead88418bc960d5896b26bea565587d16ad999"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In JavaScript, Starting with ASCII string s, keep only ASCII letters, then remove vowels aeiou in either case. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0125","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"0493781984f3ae49ad098a9a269b84988eb5ab11743b44ea48e6f79628a1ccd2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, add one, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":-4,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0144","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"ed0d815415f377fe1bf85a8c5644228430482c210e3d4198f69d3c65be47c833"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, subtract it from ten, then take its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3} {"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-javascript-0146","language":"javascript","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b09e5a661609d6d7b75aa9695f55b70256c50ea437d1acf0f4e18c3849cbf123"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In JavaScript, Starting with n, negate it, then take the last decimal digit of its absolute value. Return the result.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0153","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"78ccaeffcfcd1390bf6fc35b5de737c68e7996b2418298a555ca096e8ae741db"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0154","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"4df8657463174d0e73c70aaaaf5e839e362bbac6151ae35c645f7b8b689b0730"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0163","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"d01e8428cc3c94e2cb37dce97a04d20d0b9626e783a8a918839d987c1daa4d47"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select even items from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0164","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"76bad3bb58e6ff67ffaf7145ba1aa9ba2511435c8e8ec4441af1dc3aff0a2585"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their last value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0168","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"4722461795f3177f6a4b85e4beb9e5a366152d84cc746071f71c52adf659bac5"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0169","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"3f13e1e2e638fcc61c94b3d84914471e61b7549a943c973f1329e05d6d14a88d"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select nonzero items from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0170","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"bdaa6f79490acdc7deae0b0b17c3b647cf8d6ef4d6fe905ab2d7821c0782dc0e"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value at most three from values in original order. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0177","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"cc21e21b31751e7ce9b2f0e58985ef579f9a9f55587805c06f6bb6c2197a54ca"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select odd items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0178","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"d1ba8372b05884507f9cc75ebe084151798aff20106916b376453b3ec48b50e4"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select all items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-javascript-0188","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f437c8993c06242e214012b3399712402c921df3413b8fcc512dd5c9a2780b1c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at odd zero-based indices from values in original order. Return their sum. ","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0217","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"967239047947945d5586324408b57dc2524838deb9805f1d8d57b3968411bc64"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select negative items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0219","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ddce88c4ca83a8f69ebd3939a187146059204a0c7ea0c03b14df672467b77b35"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items with absolute value greater than three from values in original order. For each selected item, take its absolute value. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-javascript-0223","language":"javascript","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"aa22d5ce24befd134488633bd13f5fd67ceaa5a1ec7f49a6e1f66fc2bcd46f47"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In JavaScript, Select items at even zero-based indices from values in original order. For each selected item, negate it. Return their sum. ","reference_solution":null,"tests":[{"expected":-4,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3} {"category":"dom_events","difficulty":"medium","entry_point":"setup","id":"smolscript-javascript-0232","language":"javascript","metadata":{"base_css":"","family":"dom","fixture":"
0
0
0
0