id stringlengths 17 26 | language stringclasses 9
values | difficulty stringclasses 3
values | category stringclasses 7
values | prompt stringlengths 66 215 | output_format stringclasses 20
values | entry_point stringclasses 4
values | reference_solution null | tests stringlengths 2 79 | timeout_seconds int64 3 3 | metadata stringlengths 175 559 |
|---|---|---|---|---|---|---|---|---|---|---|
smolscript-c-0037 | c | easy | arithmetic_conditions | In C, Starting with n, subtract it from ten, then replace it with 1 if negative, otherwise 0. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"8fc3d5ec8a58bb8ed037c95243b39e138bc3db6caeb23e3b3d3f051205043c5d"} |
smolscript-c-0038 | c | easy | strings | In C, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only decimal digits. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"","input":"Hello"},{"expected":"","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"218a84dbeae54517f8506fe1b254e103c9b6db0e1929fd0ebf0e2d7c7f1394f4"} |
smolscript-c-0057 | c | easy | arithmetic_conditions | In C, Starting with n, take the tens digit of its absolute value, then double it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"92664e948ac191c999739480c5c8f49dd54732d8b997a15ddee026ebb9c536ba"} |
smolscript-c-0068 | c | easy | strings | In C, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then replace each run of spaces with one space. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"3749d01f065413cf384d701c668109228e967352ca115233b801d988d77f8cd1"} |
smolscript-c-0072 | c | easy | strings | In C, Starting with ASCII string s, remove vowels aeiou in either case, then keep characters from index floor(length/2) onward. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"ll","input":"Hello"},{"expected":"Cd ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f70bdd211e244de0740ace8425c893ca8ec0472c0dc6439730ba37c87c0ed171"} |
smolscript-c-0073 | c | easy | arithmetic_conditions | In C, Starting with n, negate it, then add one. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":-2,"input":3},{"expected":3,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"33d734faaae43311ca3e241646fdb7db8f89b9224ae55ce13d679cddbce0022d"} |
smolscript-c-0075 | c | easy | arithmetic_conditions | In C, Starting with n, subtract it from ten, then clamp it to the inclusive range -5 to 5. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":5,"input":3},{"expected":5,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"43cd9321b89b1aa77cf6354f75dc2282eff3119666883e76907ddc8f84bb5d17"} |
smolscript-c-0077 | c | easy | arithmetic_conditions | In C, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":-1,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"} |
smolscript-c-0078 | c | easy | strings | In C, Starting with ASCII string s, remove vowels aeiou in either case, then replace each run of spaces with one space. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cb029e4565eace228c70b527dd72d69afda974890a0bb0cb00b9b8bf8b180b25"} |
smolscript-c-0086 | c | easy | strings | In C, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only ASCII letters. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"HELLO","input":"Hello"},{"expected":"CODE","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0d270fdba952cc83e90173cd0481405cf585ec9c85c8ca205bd501ec1e8720ad"} |
smolscript-c-0089 | c | easy | arithmetic_conditions | In C, Starting with n, take the last decimal digit of its absolute value, then replace it with -1, 0, or 1 according to its sign. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":1,"input":3},{"expected":1,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"a1699cc382f6dd28d26db13262e1bb62cef740395349879887473991355e050a"} |
smolscript-c-0091 | c | easy | arithmetic_conditions | In C, Starting with n, take the tens digit of its absolute value, then subtract it from ten. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":10,"input":3},{"expected":10,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b20f05421a6eaff24fda5353cd76cd95dc1abc90c3f58efcc1cfe86ff1bd9d0c"} |
smolscript-c-0096 | c | easy | strings | In C, Starting with ASCII string s, keep the first floor(length/2) characters, then reverse the characters. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"eH","input":"Hello"},{"expected":"C ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"e533501c80778ea11cdea8dd707e77585dcd25d5c047f485c6459155db83dfa7"} |
smolscript-c-0101 | c | easy | arithmetic_conditions | In C, Starting with n, replace it with 1 if negative, otherwise 0, then double it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"73a609df81776070227a30f0bc78bbdb2c739728f1ff7f43f29ada82f759c05a"} |
smolscript-c-0108 | c | easy | strings | In C, Starting with ASCII string s, keep the first floor(length/2) characters, then remove leading and trailing spaces. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"d0fe6923b7cbbe3ec508fa7ee1adaa7d8c9154e032220744a9704f9b9ad424e5"} |
smolscript-c-0109 | c | easy | arithmetic_conditions | In C, Starting with n, square it, then subtract it from ten. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":1,"input":3},{"expected":6,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"d11401a6612d021b8ed56e05714ef3929de8874799b7d582e23d672b29e982c5"} |
smolscript-c-0114 | c | easy | strings | In C, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove every space. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"7fd4f345cddab601e1593c22922d6d8e1529881e51e026ed877e29d16abcf954"} |
smolscript-c-0117 | c | easy | arithmetic_conditions | In C, Starting with n, replace it with -1, 0, or 1 according to its sign, then replace it with 1 if even, otherwise 0. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"08c8ecc76eceb29eb705d770edcc316b3653d494819461bb1a77abe74215925c"} |
smolscript-c-0130 | c | easy | strings | In C, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove vowels aeiou in either case. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"hll","input":"Hello"},{"expected":" cd ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"dbdd4986e35947d5aa039ddf3fcf0a80e8952270ecc55eea96154270d92026ce"} |
smolscript-c-0133 | c | easy | arithmetic_conditions | In C, Starting with n, replace it with -1, 0, or 1 according to its sign, then double it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":2,"input":3},{"expected":-2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7f7eddf8a1ffa511040d241cbcf0b73bfca3a2cebaa59b47415fd95fb9d32fa1"} |
smolscript-c-0134 | c | easy | strings | In C, 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. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"lo","input":"Hello"},{"expected":"e ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"e4743c0d060cd8601652e269282204bff11ffa4d199d18276d770ec2bf48b28c"} |
smolscript-c-0140 | c | medium | frequency_tables | In C, Select nonzero items from values in original order. Return their largest frequency of a value. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7037a2fbd602315f7eac89abf0e51eeb7b250cc0a523d719dbeb2bbeecf6cfdf"} |
smolscript-c-0146 | c | medium | collections_loops | In C, Select negative items from values in original order. Return their count. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"073f1c94c411aee1d1a9334eaad70736685cdf7275427c490c74296a9033d577"} |
smolscript-c-0147 | c | medium | collections_loops | In C, Select items with absolute value greater than three from values in original order. Return their first value. Return 0 when none are selected. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"bfc5cf866f9706afefd146ea393284d0fbff54eba06f2353539d32a5cdac63a4"} |
smolscript-c-0148 | c | medium | collections_loops | In C, Select even items from values in original order. Return their sum. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"d01e8428cc3c94e2cb37dce97a04d20d0b9626e783a8a918839d987c1daa4d47"} |
smolscript-c-0154 | c | medium | collections_loops | In C, Select nonzero items from values in original order. Return their product. The empty product is 1. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":6,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"3f13e1e2e638fcc61c94b3d84914471e61b7549a943c973f1329e05d6d14a88d"} |
smolscript-c-0166 | c | medium | collections_loops | In C, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"} |
smolscript-c-0173 | c | medium | collections_loops | In C, Select items at odd zero-based indices from values in original order. Return their sum. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f437c8993c06242e214012b3399712402c921df3413b8fcc512dd5c9a2780b1c"} |
smolscript-c-0180 | c | medium | collections_loops | In C, Select negative items from values in original order. Return their sum. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b0b94dd7b2ebac185134c3e631a60d98bad9f2956a0b17c206700db31ca0a4f4"} |
smolscript-c-0182 | c | medium | collections_loops | In C, Select all items from values in original order. Return their maximum. Return 0 when none are selected. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"} |
smolscript-c-0190 | c | medium | collections_loops | In C, Select items with absolute value at most three from values in original order. Return their first value. Return 0 when none are selected. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b55f15c1b415ec88e1f39c47cee6c77ab01331c8c995a0376c77624873537476"} |
smolscript-c-0192 | c | medium | collections_loops | In C, Select items with absolute value at most three from values in original order. Return their maximum minus minimum. Return 0 when none are selected. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"d1e90678fee2574b4b50756f7505431b379e4be591b9da1b1a79548fa96e94ab"} |
smolscript-c-0194 | c | medium | collections_loops | In C, Select positive items from values in original order. Return their maximum. Return 0 when none are selected. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"46dcbed0fee0e641638a90742e0cfe6a6d58b613b577fe58644d751b5471cf28"} |
smolscript-c-0217 | c | moderate | collections_loops | In C, Select nonzero items from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their sum. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b2ec38ef2c8789f4975d427555c81ed73b5690fa35bd589df1b8077390923a89"} |
smolscript-c-0221 | c | moderate | collections_loops | In C, Select positive items from values in original order. For each selected item, double it. Return their maximum. Return 0 when none are selected. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"850bb9db7000bdea88913f6ba3005b96064bca326e87f64635ad07a2275dbea6"} |
smolscript-c-0223 | c | moderate | frequency_tables | In C, Select nonzero items from values in original order. For each selected item, take its absolute value. Return their largest frequency of a value. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"aa20e8ad412a4cf1b2ba2f90053a7fdf721edafe00a2116b2f8c2a95fb7807f1"} |
smolscript-c-0224 | c | moderate | collections_loops | In C, Select items with absolute value at most three from values in original order. For each selected item, take its absolute value. Return their sum. | Return only the function long long solve(const long long *values, int length). Do not include a main program. | solve | null | [{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"2d8e485d3304c40296044758a3a534bd639e39dc103093b7282b2f8680f032b3"} |
smolscript-lua-0001 | lua | easy | arithmetic_conditions | In Lua, Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":1,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"2b49210605af66691ff6e8c9b19a69a4742376f16dedfa59ebc4bd8393cf1a5b"} |
smolscript-lua-0004 | lua | easy | strings | In Lua, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then remove leading and trailing spaces. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"23c3a9505cbad852e68c1326c8a06bef5b124e8a9bdd7920dd23d5a916d8d991"} |
smolscript-lua-0005 | lua | easy | arithmetic_conditions | In Lua, Starting with n, subtract it from ten, then square it. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":49,"input":3},{"expected":144,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"49f8fdbb60f1cae6b886307f724f98d90548d64b02a6987d9c2249bf9556504f"} |
smolscript-lua-0011 | lua | easy | arithmetic_conditions | In Lua, Starting with n, subtract it from ten, then replace negative values with zero. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":7,"input":3},{"expected":12,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"c01d2ba720481e0e989078c165588703464f0b70d21597c1a89c949b811bab5c"} |
smolscript-lua-0015 | lua | easy | arithmetic_conditions | In Lua, Starting with n, double it, then take the last decimal digit of its absolute value. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":6,"input":3},{"expected":4,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"ade7b55151527a3deee5ca1434bee8d379e3bb237dd779de03319398cf7fce4a"} |
smolscript-lua-0016 | lua | easy | strings | In Lua, Starting with ASCII string s, replace each run of spaces with one space, then replace each run of spaces with one space. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"Hello","input":"Hello"},{"expected":" Code ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6f25c0be7e0f9c5b43ec5bc9a99211b55b170681671e03c7b2cd055886543aa6"} |
smolscript-lua-0019 | lua | easy | arithmetic_conditions | In Lua, Starting with n, negate it, then clamp it to the inclusive range -5 to 5. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":-3,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"54db15c538b75bd64e36b07e40318cccacfec346493b565e62c4f1e3c62de39e"} |
smolscript-lua-0039 | lua | easy | arithmetic_conditions | In Lua, Starting with n, double it, then take the tens digit of its absolute value. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"5013ffab1b64dbed74a5b0f94f2b126ec7bc5d730a8b57f7064d32551aeb0e5c"} |
smolscript-lua-0042 | lua | easy | strings | In Lua, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep characters from index floor(length/2) onward. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"llo","input":"Hello"},{"expected":"ode ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"7ae86c9a4e837f27c20f75e77d6c32f75e0f4db14c9a3ef3fa28fc03c953e2ba"} |
smolscript-lua-0056 | lua | easy | strings | In Lua, Starting with ASCII string s, keep the first floor(length/2) characters, then keep characters from index floor(length/2) onward. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"e","input":"Hello"},{"expected":" C","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"480bcb355f50cb4c57c84eaf826c62f1dcc1c6460e896c8072939cd2a431f389"} |
smolscript-lua-0064 | lua | easy | strings | In Lua, Starting with ASCII string s, keep only decimal digits, then keep characters from index floor(length/2) onward. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"","input":"Hello"},{"expected":"","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"1ece2fa0c84b8a2426c9d8cdf63ce9965104975a0208dabf0f8433b791e5bd97"} |
smolscript-lua-0070 | lua | easy | strings | In Lua, Starting with ASCII string s, remove leading and trailing spaces, then replace each run of spaces with one space. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"2ca9e839fa72a29fe2fe908e370c9fde372ede8b642008715505caf3115a483f"} |
smolscript-lua-0073 | lua | easy | arithmetic_conditions | In Lua, Starting with n, negate it, then add one. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":-2,"input":3},{"expected":3,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"33d734faaae43311ca3e241646fdb7db8f89b9224ae55ce13d679cddbce0022d"} |
smolscript-lua-0077 | lua | easy | arithmetic_conditions | In Lua, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":-1,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"} |
smolscript-lua-0078 | lua | easy | strings | In Lua, Starting with ASCII string s, remove vowels aeiou in either case, then replace each run of spaces with one space. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cb029e4565eace228c70b527dd72d69afda974890a0bb0cb00b9b8bf8b180b25"} |
smolscript-lua-0079 | lua | easy | arithmetic_conditions | In Lua, Starting with n, square it, then clamp it to the inclusive range -5 to 5. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":5,"input":3},{"expected":4,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"4ada95c924813f199f1f1a5c6c0571bae642238cdf2e953ab19ea77fbd9923b8"} |
smolscript-lua-0080 | lua | easy | strings | In Lua, Starting with ASCII string s, reverse the characters, then reverse the characters. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"Hello","input":"Hello"},{"expected":" Code ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0bbe9db9ecbf3c86c96ece94d927d475e757662585e8dc6fe4f5e0f322e2e0b9"} |
smolscript-lua-0084 | lua | easy | strings | In Lua, Starting with ASCII string s, keep characters from index floor(length/2) onward, then swap the case of ASCII letters. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"} |
smolscript-lua-0090 | lua | easy | strings | In Lua, Starting with ASCII string s, remove vowels aeiou in either case, then remove every space. Return the result. | Return only the function function solve(s). Do not include a main program. | solve | null | [{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6374a93c754feea9b749d000da47dbf8a54e2c731b3e576f28ee9406cbae811d"} |
smolscript-lua-0095 | lua | easy | arithmetic_conditions | In Lua, Starting with n, add one, then replace negative values with zero. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":4,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"ca21dbad84be578f41fda51c55af31d85d2823707bedb248b4aff7aca49b0cd2"} |
smolscript-lua-0097 | lua | easy | arithmetic_conditions | In Lua, Starting with n, double it, then square it. Return the result. | Return only the function function solve(n). Do not include a main program. | solve | null | [{"expected":36,"input":3},{"expected":16,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"696da44f39e4f5cae04885b8ffeac48c8965adb71666c160f3543c1a48384073"} |
smolscript-lua-0125 | lua | medium | frequency_tables | In Lua, Select nonzero items from values in original order. Return their largest frequency of a value. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7037a2fbd602315f7eac89abf0e51eeb7b250cc0a523d719dbeb2bbeecf6cfdf"} |
smolscript-lua-0127 | lua | medium | collections_loops | In Lua, Select positive items from values in original order. Return their product. The empty product is 1. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":6,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"3e1db17cdfc25108182387a6ad44ff5f09874b38e8dfb73fd9d9ec12ef7e7df6"} |
smolscript-lua-0129 | lua | medium | collections_loops | In Lua, Select items at even zero-based indices from values in original order. Return their product. The empty product is 1. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"e60a689eff23acd8589ebb5a58972b7d473b9091e33870f2d1bdb6726d1b52d8"} |
smolscript-lua-0139 | lua | medium | collections_loops | In Lua, Select nonzero items from values in original order. Return their product. The empty product is 1. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":6,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"3f13e1e2e638fcc61c94b3d84914471e61b7549a943c973f1329e05d6d14a88d"} |
smolscript-lua-0143 | lua | medium | collections_loops | In Lua, Select items at odd zero-based indices from values in original order. Return their count. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"290f81bbf90160ab72c0f01d5e4f85aab52f95b23572e5654cfa259b8df1360c"} |
smolscript-lua-0145 | lua | medium | collections_loops | In Lua, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"} |
smolscript-lua-0151 | lua | medium | collections_loops | In Lua, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"} |
smolscript-lua-0158 | lua | medium | collections_loops | In Lua, Select items at odd zero-based indices from values in original order. Return their sum. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f437c8993c06242e214012b3399712402c921df3413b8fcc512dd5c9a2780b1c"} |
smolscript-lua-0159 | lua | medium | collections_loops | In Lua, Select even items from values in original order. Return their maximum minus minimum. Return 0 when none are selected. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ab16998cc25f35f82d44970f5d7e8552ff0b66d080f4f2f3aba0ff4eada28bd0"} |
smolscript-lua-0167 | lua | medium | collections_loops | In Lua, Select all items from values in original order. Return their maximum. Return 0 when none are selected. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"} |
smolscript-lua-0173 | lua | medium | collections_loops | In Lua, Select odd items from values in original order. Return their maximum minus minimum. Return 0 when none are selected. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"abc508552cc013a3814770c972b4800101967ee2c4d98f7ec750c069c8b22948"} |
smolscript-lua-0181 | lua | moderate | collections_loops | In Lua, 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. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"85c9c0d5316b01f6e69ea5a711697bc201f89aec76f437c0833a1564d8c4e028"} |
smolscript-lua-0183 | lua | moderate | collections_loops | In Lua, Select items with absolute value at most three from values in original order. For each selected item, replace it with -1, 0, or 1 according to its sign. Return their number of distinct values. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":3,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"be6804501845e0e77e18501b23e96a1453ce25c8c636c59cdc5554f06044ae14"} |
smolscript-lua-0196 | lua | moderate | collections_loops | In Lua, Select items with absolute value at most three from values in original order. For each selected item, take its absolute value. Return their maximum. Return 0 when none are selected. | Return only the function function solve(values). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"06864ec7e4429c1a7f9ac52bf72767cc568f22e0f82fb71a748041b2ae48a185"} |
smolscript-csharp-0003 | csharp | easy | arithmetic_conditions | In C#, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":7,"input":3},{"expected":12,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"} |
smolscript-csharp-0010 | csharp | easy | strings | In C#, Starting with ASCII string s, replace each run of spaces with one space, then keep the first floor(length/2) characters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"He","input":"Hello"},{"expected":" Co","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"04fce02d3df37668b5ee9fabc2d0441dc7a0eb557350bd486baf253231362acc"} |
smolscript-csharp-0021 | csharp | easy | arithmetic_conditions | In C#, Starting with n, replace it with 1 if even, otherwise 0, then add one. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":1,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b1b03d9a1805d617ce5db2dd3ff309bb6adbeb5bb7dc8d9adc45a860677d7c36"} |
smolscript-csharp-0025 | csharp | easy | arithmetic_conditions | In C#, Starting with n, take the last decimal digit of its absolute value, then negate it. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":-3,"input":3},{"expected":-2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"07ddda8434ac5983b5a6c0b67c87a8da516445cf349889e927de0268c1dedc9a"} |
smolscript-csharp-0028 | csharp | easy | strings | In C#, Starting with ASCII string s, keep the first floor(length/2) characters, then keep only ASCII letters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0ccf8a670ac5e4c470cf7c7e01028d21926f080204e605498a42f4b9e2e0517a"} |
smolscript-csharp-0032 | csharp | easy | strings | In C#, Starting with ASCII string s, keep only decimal digits, then keep the first floor(length/2) characters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"","input":"Hello"},{"expected":"","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"5d477fce742811bbd2a7cdf52e2741729fb4c80cee764c42beced358b3b8f160"} |
smolscript-csharp-0040 | csharp | easy | strings | In C#, Starting with ASCII string s, remove leading and trailing spaces, then remove every space. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"301490a47015f36166dd72b4b697e4aff2553ea17c9f51e162094b927c93511e"} |
smolscript-csharp-0051 | csharp | easy | arithmetic_conditions | In C#, 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. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":3,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"19cb30424ca4502257c78aa702f50371fdaa20d55720258943468f6cd3f4338a"} |
smolscript-csharp-0056 | csharp | easy | strings | In C#, Starting with ASCII string s, keep the first floor(length/2) characters, then keep characters from index floor(length/2) onward. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"e","input":"Hello"},{"expected":" C","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"480bcb355f50cb4c57c84eaf826c62f1dcc1c6460e896c8072939cd2a431f389"} |
smolscript-csharp-0057 | csharp | easy | arithmetic_conditions | In C#, Starting with n, take the tens digit of its absolute value, then double it. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"92664e948ac191c999739480c5c8f49dd54732d8b997a15ddee026ebb9c536ba"} |
smolscript-csharp-0068 | csharp | easy | strings | In C#, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then replace each run of spaces with one space. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"3749d01f065413cf384d701c668109228e967352ca115233b801d988d77f8cd1"} |
smolscript-csharp-0076 | csharp | easy | strings | In C#, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only ASCII letters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"2a9046e7cb741792703a089c5b76b636228749b6785a4b0ecb3ff0fcb23ff042"} |
smolscript-csharp-0084 | csharp | easy | strings | In C#, Starting with ASCII string s, keep characters from index floor(length/2) onward, then swap the case of ASCII letters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"} |
smolscript-csharp-0099 | csharp | easy | arithmetic_conditions | In C#, Starting with n, double it, then add one. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":7,"input":3},{"expected":-3,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7cb15235f756b91de98c00852b9d15f25ca73c0622f1ddf0bd6d01d877a5a68e"} |
smolscript-csharp-0103 | csharp | easy | arithmetic_conditions | In C#, Starting with n, add one, then clamp it to the inclusive range -5 to 5. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":4,"input":3},{"expected":-1,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"f6a4427211b53870014967192031618cc7c6b03fe834454ed215a39efcc070b0"} |
smolscript-csharp-0105 | csharp | easy | arithmetic_conditions | In C#, Starting with n, add one, then take the tens digit of its absolute value. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"57027a59e0b42e4e807447a395f09b9a45cc3110246ad1b2f78bbd5e3f7635a1"} |
smolscript-csharp-0112 | csharp | easy | strings | In C#, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep only ASCII letters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"hello","input":"Hello"},{"expected":"code","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"5ce181db3335aff3b575cc686e85481d76966ba0781b766c221dd4e0a4afd659"} |
smolscript-csharp-0113 | csharp | easy | arithmetic_conditions | In C#, 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. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":3,"input":3},{"expected":-2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"503f50fc6029dfb81c0fc3a51b54fe4565d3d6519ffc96331d93b38831befd33"} |
smolscript-csharp-0116 | csharp | easy | strings | In C#, Starting with ASCII string s, remove leading and trailing spaces, then keep only ASCII letters. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"Hello","input":"Hello"},{"expected":"Code","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"fa9003f7c513422aa682419cb9801d44a1cd3352fdce2ca766089e8508d6dc5d"} |
smolscript-csharp-0117 | csharp | easy | arithmetic_conditions | In C#, Starting with n, replace it with -1, 0, or 1 according to its sign, then replace it with 1 if even, otherwise 0. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"08c8ecc76eceb29eb705d770edcc316b3653d494819461bb1a77abe74215925c"} |
smolscript-csharp-0119 | csharp | easy | arithmetic_conditions | In C#, Starting with n, negate it, then subtract it from ten. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":13,"input":3},{"expected":8,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"9b5e1457072011a3454786472f7a911324a189ed9fd7feab9e9cf184f66560cf"} |
smolscript-csharp-0129 | csharp | easy | arithmetic_conditions | In C#, Starting with n, take the last decimal digit of its absolute value, then double it. Return the result. | Return only the function public static long Solve(long n) inside public class Solution. | Solve | null | [{"expected":6,"input":3},{"expected":4,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"e4e9b1ceafe1559d7b7191fedf0968d7f4496123db80a6a512b28936eb9b895e"} |
smolscript-csharp-0132 | csharp | easy | strings | In C#, Starting with ASCII string s, reverse the characters, then remove every space. Return the result. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"3e7e7cb3608459260f6daf3926c6642aece3924558c4f944181c61ad8f078762"} |
smolscript-csharp-0134 | csharp | easy | strings | In C#, 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. | Return only the function public static string Solve(string s) inside public class Solution. | Solve | null | [{"expected":"lo","input":"Hello"},{"expected":"e ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"e4743c0d060cd8601652e269282204bff11ffa4d199d18276d770ec2bf48b28c"} |
smolscript-csharp-0143 | csharp | medium | collections_loops | In C#, Select nonzero items from values in original order. Return their last value. Return 0 when none are selected. | Return only the function public static long Solve(long[] values) inside public class Solution. | Solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b620d9bfba5a55d3c665aeaa18075c62a278d6f0dd246ebc0c4483ee2714382a"} |
smolscript-csharp-0149 | csharp | medium | collections_loops | In C#, Select all items from values in original order. Return their last value. Return 0 when none are selected. | Return only the function public static long Solve(long[] values) inside public class Solution. | Solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"76bad3bb58e6ff67ffaf7145ba1aa9ba2511435c8e8ec4441af1dc3aff0a2585"} |
smolscript-csharp-0156 | csharp | medium | collections_loops | In C#, Select items with absolute value greater than three from values in original order. Return their minimum. Return 0 when none are selected. | Return only the function public static long Solve(long[] values) inside public class Solution. | Solve | null | [{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ceb549e222f9ac0c6272a9ad3784403e48570ffe652cb76c6878c949aabf041c"} |
smolscript-csharp-0166 | csharp | medium | collections_loops | In C#, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1. | Return only the function public static long Solve(long[] values) inside public class Solution. | Solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.