File size: 243,954 Bytes
53cafbc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
{"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":"<button id=\"action\">Go</button><input id=\"input\" value=\"\"><p id=\"output\">0</p><ul id=\"items\"></ul><input id=\"check\" type=\"checkbox\">","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"33979e1d3e22318a1c2ed08cbb9b6338b0debe841c6bb30d403578f67abf96a5"},"output_format":"Return function setup() only. The harness calls it once after loading the fixture.","prompt":"In JavaScript, Implement setup(). When #action is clicked, increase the integer in #output by one. Attach an event listener; do not perform the action before a click.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"dom_events","difficulty":"medium","entry_point":"setup","id":"smolscript-javascript-0234","language":"javascript","metadata":{"base_css":"","family":"dom","fixture":"<button id=\"action\">Go</button><input id=\"input\" value=\"\"><p id=\"output\">0</p><ul id=\"items\"></ul><input id=\"check\" type=\"checkbox\">","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"3b18aa35f2f7d37d573f87e1e01f72483a1f17494b3fd7a9c93b3088f3cdd14f"},"output_format":"Return function setup() only. The harness calls it once after loading the fixture.","prompt":"In JavaScript, Implement setup(). When #action is clicked, copy the input value into #output. Attach an event listener; do not perform the action before a click.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"dom_events","difficulty":"medium","entry_point":"setup","id":"smolscript-javascript-0243","language":"javascript","metadata":{"base_css":"","family":"dom","fixture":"<button id=\"action\">Go</button><input id=\"input\" value=\"\"><p id=\"output\">0</p><ul id=\"items\"></ul><input id=\"check\" type=\"checkbox\">","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4c314cdd8025e06207e1e7a3e6e97d34e25870e7bdbb208ec2339a3b9b627965"},"output_format":"Return function setup() only. The harness calls it once after loading the fixture.","prompt":"In JavaScript, Implement setup(). When #action is clicked, set #output title to the input value. Attach an event listener; do not perform the action before a click.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"dom_events","difficulty":"moderate","entry_point":"setup","id":"smolscript-javascript-0247","language":"javascript","metadata":{"base_css":"","family":"dom","fixture":"<button id=\"action\">Go</button><input id=\"input\" value=\"\"><p id=\"output\">0</p><ul id=\"items\"></ul><input id=\"check\" type=\"checkbox\">","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"e5a091807ba9eb36dbbdbc3aa7695e172838d907704c1fe133f3d876ea1d6b48"},"output_format":"Return function setup() only. The harness calls it once after loading the fixture.","prompt":"In JavaScript, Implement setup(). On an input event from #input, copy the uppercased input into #output. Use a listener, leave the initial page unchanged, and handle repeated events.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0003","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"355715e248988addc97a08ed2eaa173e11795edac39e46b0c8304eac83ad0148"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an h1 heading reading Welcome. On its outer element, set right-to-left direction via dir. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0004","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"5cf45411142515df22b8e277874ea4b60dc94f7fef618dcad1837257f57080a3"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an h1 heading reading Welcome. On its outer element, set the hidden attribute. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0020","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"148a9a273a368cae6fc5a5512306b7db9723f1e94d2e019a67a8f03b57d76c70"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a Save button with type button. On its outer element, set English language via lang. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0027","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"90dda9b05cd5b7b74bb031197de8774c0a4c6db6ca4aa77276319223e022dfa7"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an image sourced from icon.png with alt text Star. On its outer element, set right-to-left direction via dir. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0031","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d1ea5eab6ed96ca52420a19945418340dca178aa843d8b58447207840a07c092"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an email input named email. On its outer element, set a title attribute of Information. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0036","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"a3db544611d662601b67cdf1a96bdbbf3d37611fd98385da0521bad04d2361b4"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an email input named email. On its outer element, set contenteditable set to true. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0042","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"238d7b6241a9afcfa59a63809396cb0c32a1951b3f9bedaf650fe3dbafe51118"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a checkbox named agree. On its outer element, set contenteditable set to true. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0045","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"251f12cc33e640e9100423b1369f4ca4e0d9f7d8037fe44cf4528450564ecc8e"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a POST form targeting /send containing a Send button. On its outer element, set right-to-left direction via dir. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0047","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"1655aa8adec8b02fb33e362c61a75bb51ad7f4e9d770af6af882a0aec020dd9c"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a POST form targeting /send containing a Send button. On its outer element, set keyboard focus via tabindex 0. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0049","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"fed910f70d4a9f37ba62b4d25f2ca21bab519ee7da372433edeecaed20e91b5d"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an unordered list containing Tea then Water. On its outer element, set a title attribute of Information. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0054","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"7cae165a7cc3269300df9dc82402e29ebd9931c95fcd47e01b773c9cf0c07b2e"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an unordered list containing Tea then Water. On its outer element, set contenteditable set to true. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0067","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4d40a0c8b5c8cfac4bf97b6eaca9ebf96318ed34170c72abd8041f3213ebe84c"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create an article with an h2 News and a paragraph Today. On its outer element, set a title attribute of Information. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0082","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d52e8ca6ce3848fa3e8588187fa07d580887e3e8185fff8ad70285b6a20ac971"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a blockquote reading Be kind citing /source. On its outer element, set the hidden attribute. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0089","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"8eab8f42a2539107ad7810c499115f1221b5f97943d6728e46770b914bed628c"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a preformatted code block reading x = 1. On its outer element, set keyboard focus via tabindex 0. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0094","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4de8653f64eb138333913e3da0bab60e2d1749d572d20b699af830d7f286e654"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a details element with summary More and paragraph Details. On its outer element, set the hidden attribute. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0095","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"b3d1ff8317abf94950833d8466b39e217733542e6e3dffe6dea0ba2e759d0f96"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a details element with summary More and paragraph Details. On its outer element, set keyboard focus via tabindex 0. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0097","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"3af8a3c1eee98cb76ab4d1fcf9d75638f4cf85ba2e736cbf4ad5e0f5934a243c"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a select named color with Red/red and Blue/blue options. On its outer element, set a title attribute of Information. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0100","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"bcb1a6401c609001f19ec9023b7a9e58192a2ad8cb52fbc008b6c75ece42de38"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a select named color with Red/red and Blue/blue options. On its outer element, set the hidden attribute. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0114","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d541b8e3e8583eda16ebf55a03666821327be18bc96bbde1470381a387f45678"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a Name label associated with input ID username. On its outer element, set contenteditable set to true. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0116","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"abdfc2c88b8921c62505df42dbfc844266b850f7b02bee77282f6cd91202025f"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a progress element with maximum 10 and value 4. On its outer element, set English language via lang. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"easy","entry_point":"","id":"smolscript-html-0118","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"22c86a7c1148b12ec8a0deffb560cb07e1a89597c06551e6f8532072c5cdfc4c"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a progress element with maximum 10 and value 4. On its outer element, set the hidden attribute. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0123","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"b662f1ffdd480137141eaeb4cdff02d41862d1050396996bcc51dc0914e6c95f"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a div containing an h1 heading reading Welcome, followed by an ordered list containing Open then Close. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0129","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"fe5845deb3f958c0baccdeeeab7d42f6abbb14c5f25461d0fb35ceb635f807fd"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a div containing a Help link to /help, followed by an article with an h2 News and a paragraph Today. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0130","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"ae120940fc4b730cb7cea7ed74cb835a2cf975fc11b08f73c989aed8aceec371"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a section containing a Save button with type button, followed by an image sourced from icon.png with alt text Star. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0143","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"1a2ed68116827ccb1b9bc9e0decce57ebb28358f6736136e0a332985e7cdbfea"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a aside containing a POST form targeting /send containing a Send button, followed by an article with an h2 News and a paragraph Today. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0146","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"8d8cfaad53bb0f24e78d20f4d2e2ad695b2e533a9c8d3f20c4e387d55e0af7d2"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a aside containing an unordered list containing Tea then Water, followed by a footer reading Copyright. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0160","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"24ebad48c5d37cb9c239739131f97ff3043a9c9ec765ba924ef86fd63fa2babb"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a section containing a blockquote reading Be kind citing /source, followed by a preformatted code block reading x = 1. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0164","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"0569b4774c968e9424fb0e1692b72d3127fab299a4aba15b35ff220d08666092"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a aside containing a preformatted code block reading x = 1, followed by a Name label associated with input ID username. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0165","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"a4fff1273cd9a0973bf0b5040a495b5e1523552115e504bf1830878f3acf372d"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a div containing a preformatted code block reading x = 1, followed by a Save button with type button. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0166","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"8df3f46722d4f9a91a0ee7165b0acb249c58488e9082e18be7fe89e2f145fca5"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a section containing a details element with summary More and paragraph Details, followed by a select named color with Red/red and Blue/blue options. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0169","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4510a25e502e6ef8de4f122ca65c91da8293088161d0dd70413e1c65633be626"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a section containing a select named color with Red/red and Blue/blue options, followed by a textarea named note with three rows initially reading Note. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"medium","entry_point":"","id":"smolscript-html-0170","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"ebb021b50efa6a302b1d410d3898ed9aa7328e15483a8f0f53bbbcd4de177fb5"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a aside containing a select named color with Red/red and Blue/blue options, followed by an h1 heading reading Welcome. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"moderate","entry_point":"","id":"smolscript-html-0184","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"7a693069c149194ec1d6deb89efe346423fcea2430c7938df7014e0d938bf68d"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a main element. Put a Save button with type button inside its section, and a navigation element with a Home link to / inside its following aside. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"moderate","entry_point":"","id":"smolscript-html-0188","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"f5653a2f824070ace6a821e9904272183dbbe4e4b542594405f196e2cb349f7f"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a main element. Put a POST form targeting /send containing a Send button inside its section, and a preformatted code block reading x = 1 inside its following aside. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"semantic_structure","difficulty":"moderate","entry_point":"","id":"smolscript-html-0195","language":"html","metadata":{"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"c371f709ce4fd622278aa3fda27138c21c10e68f6f297081dca159d1c35b9bb2"},"output_format":"Return an HTML fragment only.","prompt":"In HTML, Create a main element. Put a preformatted code block reading x = 1 inside its section, and a paragraph reading Hello reader inside its following aside. Return an HTML fragment.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0010","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"aa680052b1c7e60f561e727e1437f5f1a13bc3fd585827591e0429f232a74ff1"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style every element with class target: set font-weight to 700. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0012","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"423e7448670165ec3933e322158fa1f6b1f4ecd013a96b758bc6c4e393430487"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set font-weight to 700. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0013","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"3d5e1975891dbbc43a0becb51c39bbe323c58e0c133b784c7b8669ae19ae3621"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style every element with class target: set font-style to italic. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0021","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"497229db340afc3b64218e40e85ada0d8d53b00e4e589e0033b6886985ec7f53"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set text-transform to uppercase. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0026","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"c1807fd97f96756169ea9e1c0ef2ed473eb412a9854792fd51d77e3e8156d6b2"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only the element with ID target: set word-spacing to 4px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0030","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"1177db766a9545e3674bf23b6a60af9bd3ab3cb236748a69c8bacf32edd59dbe"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set line-height to 28px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0041","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"b0bbe5f72f6fd92f8f79db711f682d318af7aabbd156465255628e2103f4b626"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only the element with ID target: set padding-right to 10px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0046","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"90aa7159ad26e624f321a3fd0f84ff4bea932c63b95d2c2bf955cfd2f89564a4"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style every element with class target: set padding-left to 14px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0054","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"acf0835c6a6a2651a9e5e78157aeb6255b4075b90cb486d7b57930ed2d06474b"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set margin-right to 8px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0056","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"a939a14796d73da6e41a5ac1abcd3735273998b0eb601e48646227b96667a723"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only the element with ID target: set margin-bottom to 10px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0058","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"2e2117f7e93a1db998a03f688bdbf8312d287e75e475754533da8b494c48d4d8"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style every element with class target: set margin-left to 12px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0060","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"0dacef6451c9df3450bdfdc4c3ec862312b4b87222455f8395f9911085db6593"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set margin-left to 12px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0062","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"36ab3b585732e37c46e91c57262bf1732c52eab65eb4a7317efef7554b030e9e"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only the element with ID target: set border-top-width to 3px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0067","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"6a8cca665a7a4694749fcf507716a365eea8788ca84eb1d2699d26136d2df568"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style every element with class target: set border-radius to 6px. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0072","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"35aa0f483fa82e21b892cf9e7438941a694745cc7f1b6085aa42a4fd6658ea76"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set opacity to 0.5. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0095","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"3481672e8da94c5b214400ab2f75773488ff6508446a539378eaa8b635f61d77"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only the element with ID target: set justify-content to center. Use flex display. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0096","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"38f557531c2543ce4f6ce209f99a0def94f9667f532d875ca3e6828a7780b04a"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set justify-content to center. Use flex display. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0106","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"b9762da6e1a6fa2797b59cbff6a9b201c415d5aafc185042aab706f07e5a9bac"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style every element with class target: set top to 5px. Use relative positioning. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0108","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"99111e7420caa8747ec44b958737ef63804dde69d2e521d27a70f07c3de73a75"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set top to 5px. Use relative positioning. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0111","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"84675a7712c493de6f70f3bd481ba54d924d6bd9a1ed4ee3bb64f00e9c449a8f"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only direct children of #scope having class target: set overflow-x to hidden. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"easy","entry_point":"","id":"smolscript-css-0113","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"0441eb2a24996e2b06d39b233264eba731122e02115678c4dff2cd991f751ea7"},"output_format":"Return a stylesheet only.","prompt":"In CSS, Style only the element with ID target: set visibility to hidden. Leave other elements unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0122","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"fb70d17cb766142dfcc635cc70830ccfe82937172cf584c8c20da47647d73e58"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set color to rgb(10, 20, 30) and letter-spacing to 2px. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0124","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"e5b3118c71cb64735bc75e911d026fbebdd89addbbf1fba291a8f8f206116297"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set background-color to rgb(240, 220, 200) and text-align to center. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0127","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"48a27f2dc207efbfb154e37ce74518b8071c355dc3e0c9aa43f16195b845bef6"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set font-size to 20px and text-transform to uppercase. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0136","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"a4697033b114a5c8525c0b09e183c12460a60d8fbbf18cb85748fcee17efe693"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set text-align to center and line-height to 28px. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0138","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"82de741b6623b1642e0a0b2ace298654f582b8136fcb839cef18ebe9aeb25d4f"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set text-align to center and margin-top to 6px. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0157","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"2566aad362fcd410355dc16a302b75825f573afa1ca96a27e2cdb95b1aa6a145"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set padding-top to 8px and margin-top to 6px. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0165","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"bd58190a61b748a1f7e8681c52947dbbf5339099ac195b2a43c29b2aa0e5edd0"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set padding-bottom to 12px and text-align to center. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0166","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d27cfd790f2bf6ea5901481377db4cc2e33dda545bf00ad51c7ec52763fd4e34"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set padding-left to 14px and margin-left to 12px. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0176","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"87fff825cefa43752aa27cfc79829b657da9643d1c00228f650b605f1a8f7f8c"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set margin-bottom to 10px and text-align to center. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"medium","entry_point":"","id":"smolscript-css-0179","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d17689917cbbfc2bd3516dec4aca458c57eac8e994f3a42c9d37410e74414761"},"output_format":"Return a stylesheet only.","prompt":"In CSS, For direct children of #scope with class target, set margin-left to 12px and text-transform to uppercase. Leave .other unchanged. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"moderate","entry_point":"","id":"smolscript-css-0181","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"9a189c74ceff07ac852fe23a3e0d8bf6f27a2ddbc0fbd863e230daadf6d2b450"},"output_format":"Return a stylesheet only.","prompt":"In CSS, At viewport widths at most 600px, set color to rgb(10, 20, 30) on #target. At wider widths, preserve its original style. Never change .other. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"moderate","entry_point":"","id":"smolscript-css-0187","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"ad4c822ffcaa5103aebf5ff03ffaaa68d1cc6ed6736c843c0945c01bc09af5c5"},"output_format":"Return a stylesheet only.","prompt":"In CSS, At viewport widths at most 600px, set text-transform to uppercase on #target. At wider widths, preserve its original style. Never change .other. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"moderate","entry_point":"","id":"smolscript-css-0189","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4f993a90c5ca7d7753526b29885faa5927136e4446ee2f51698d46796e76b73d"},"output_format":"Return a stylesheet only.","prompt":"In CSS, At viewport widths at most 600px, set word-spacing to 4px on #target. At wider widths, preserve its original style. Never change .other. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"styles_layout","difficulty":"moderate","entry_point":"","id":"smolscript-css-0197","language":"css","metadata":{"base_css":"* { box-sizing: content-box; } .target,.other { border: 1px solid black; width:200px; height:80px; min-width:0; max-width:none; margin:0; padding:0; display:block; position:static; }","family":"css","fixture":"<div id=\"scope\"><div id=\"target\" class=\"target\" data-kind=\"card\">Alpha<span>One</span><span>Two</span></div><div class=\"other\">Beta</div></div><div class=\"target\" id=\"outside\">Outside</div>","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"dfcb89d30db352ae5d9ad9abd9409029c209aaacb26098a9fd6126adee9484eb"},"output_format":"Return a stylesheet only.","prompt":"In CSS, At viewport widths at most 600px, set margin-top to 6px on #target. At wider widths, preserve its original style. Never change .other. Return CSS only.","reference_solution":null,"tests":[],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0003","language":"cpp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C++, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. 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-cpp-0025","language":"cpp","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 long long solve(long long n). Do not include a main program.","prompt":"In C++, 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-cpp-0046","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cc57555ffbf9802702d5d5dc94e9754a2b569d94f537c32bdbb5ab73e015f675"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, keep the first floor(length/2) characters, then swap the case of ASCII letters. Return the result.","reference_solution":null,"tests":[{"expected":"hE","input":"Hello"},{"expected":"  c","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0054","language":"cpp","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 std::string solve(std::string s). Do not include a main program.","prompt":"In C++, 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-cpp-0058","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"7c7c10d795bfbc32415221aadc497256881583f114d7842173d6957da6c65b1c"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove every space. 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-cpp-0060","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"66691f529e2341f74a3ec4e9d86a8d1e6c1b0bc3f32fda5668e18c9933405261"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, keep characters from index floor(length/2) onward, 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-cpp-0061","language":"cpp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"1dfdbc1e0434d191f7c2f348cb6956a91959cc27ffe5e3b6ead4e8cfb40961fb"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C++, Starting with n, replace it with 1 if even, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0062","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"4bb993e8ac243d894f67c3104a629c799ff47fec3301edaab06a1f8bd1a0aa9b"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, reverse the characters, then remove leading and trailing spaces. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":"  Code "}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0065","language":"cpp","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 long long solve(long long n). Do not include a main program.","prompt":"In C++, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0077","language":"cpp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C++, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0079","language":"cpp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"4ada95c924813f199f1f1a5c6c0571bae642238cdf2e953ab19ea77fbd9923b8"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C++, Starting with n, square it, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0084","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0090","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6374a93c754feea9b749d000da47dbf8a54e2c731b3e576f28ee9406cbae811d"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, remove vowels aeiou in either case, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0096","language":"cpp","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 std::string solve(std::string s). Do not include a main program.","prompt":"In C++, 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-cpp-0097","language":"cpp","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 long long solve(long long n). Do not include a main program.","prompt":"In C++, 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-cpp-0098","language":"cpp","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 std::string solve(std::string s). Do not include a main program.","prompt":"In C++, 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":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0100","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"8614ef4c973a29c090e4de61192a06996fcb89aa773f543d5d897ca61b99c6b5"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, reverse the characters, 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-cpp-0107","language":"cpp","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 long long solve(long long n). Do not include a main program.","prompt":"In C++, 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-cpp-0108","language":"cpp","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 std::string solve(std::string s). Do not include a main program.","prompt":"In C++, 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-cpp-0113","language":"cpp","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 long long solve(long long n). Do not include a main program.","prompt":"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.","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-cpp-0115","language":"cpp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"5c00ec7cacd152f9bc3cf7177508a18352a4c6e010a2c097524597552ca24482"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C++, Starting with n, subtract it from ten, then double it. Return the result.","reference_solution":null,"tests":[{"expected":14,"input":3},{"expected":24,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0121","language":"cpp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6ca778afcd9f9afaa0ae77e9ae6aac398bda6417b025d7f086e0eab9599c4635"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C++, Starting with n, replace it with -1, 0, or 1 according to its sign, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":9,"input":3},{"expected":11,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0122","language":"cpp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0cb8f8f54c155084bb23eeff7e9a2671174d4399873231fe7c4a0708f0431ed4"},"output_format":"Return only the function std::string solve(std::string s). Do not include a main program.","prompt":"In C++, Starting with ASCII string s, keep only ASCII letters, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-cpp-0135","language":"cpp","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 long long solve(long long n). Do not include a main program.","prompt":"In C++, 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":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0136","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b76b5d108afa118e194c6a5926348b492bacd2139d36b23fc6f4947ee6a308a8"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select odd items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0137","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f6d14a18911c2bce0541261858cb9e4dfc8c952859895457473813933d14b636"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select negative items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0149","language":"cpp","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 long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, 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-cpp-0150","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"203899422266dc69d0c6dc6f2f0b04a7f8d61529702fd9f5d8a5f70f73391b5f"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select all items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0151","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"28cb3420d8419e10490c77c8eb80f9baef5d1d79a903000a55dca89173696be9"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select positive items from values in original order. Return their maximum minus minimum. 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-cpp-0154","language":"cpp","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 long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, 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":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0156","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ceb549e222f9ac0c6272a9ad3784403e48570ffe652cb76c6878c949aabf041c"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select items with absolute value greater than three 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":0,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0160","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-cpp-0168","language":"cpp","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 long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, 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-cpp-0176","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"10df1f967ac4e41760384381cc0cd966c29f9d403d173cc97f6bd8695cf684ad"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select items with absolute value at most three 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-cpp-0178","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"04e4ef9a1e6359877c3ed543a38575c34ced5da7dac4b70e6cca762907fa3ba2"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select items with absolute value greater than three from values in original order. 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":"medium","entry_point":"solve","id":"smolscript-cpp-0187","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"e160e0c67e818776e1bac59b64d8c6798dc202bbf30337f07d70bb07aec4e3ff"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select all items from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-cpp-0213","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"30b02aeccf1bbd5f2e95bf24917746454ae7860a6bf5ceb347dc118610e9a6ab"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select all items from values in original order. For each selected item, add one. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-cpp-0215","language":"cpp","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 long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, 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-cpp-0220","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"0bca1976da5f6d21a0c2331dba0c1f31b07f80cd1ddcd52a05ea937761a2022b"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select negative items from values in original order. For each selected item, add one. Return their maximum. 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":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-cpp-0222","language":"cpp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"506c6dd09551f4de09b9eac4d2f318c1f3e2f2e41eaa8f2094f91381bd4f00e4"},"output_format":"Return only the function long long solve(const std::vector<long long>& values). Do not include a main program.","prompt":"In C++, Select all items from values in original order. For each selected item, square it. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0001","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"2b49210605af66691ff6e8c9b19a69a4742376f16dedfa59ebc4bd8393cf1a5b"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0024","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"In C, 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-c-0037","language":"c","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 long long solve(long long n). Do not include a main program.","prompt":"In C, 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-c-0038","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"In C, 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-c-0057","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"92664e948ac191c999739480c5c8f49dd54732d8b997a15ddee026ebb9c536ba"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, take the tens digit of its absolute value, then double 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-c-0068","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0072","language":"c","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f70bdd211e244de0740ace8425c893ca8ec0472c0dc6439730ba37c87c0ed171"},"output_format":"Return only the function const char *solve(const char *input). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"ll","input":"Hello"},{"expected":"Cd ","input":"  Code "}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0073","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"33d734faaae43311ca3e241646fdb7db8f89b9224ae55ce13d679cddbce0022d"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, negate it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":-2,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0075","language":"c","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 long long solve(long long n). Do not include a main program.","prompt":"In C, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0077","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0078","language":"c","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cb029e4565eace228c70b527dd72d69afda974890a0bb0cb00b9b8bf8b180b25"},"output_format":"Return only the function const char *solve(const char *input). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"Hll","input":"Hello"},{"expected":" Cd ","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0086","language":"c","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0d270fdba952cc83e90173cd0481405cf585ec9c85c8ca205bd501ec1e8720ad"},"output_format":"Return only the function const char *solve(const char *input). Do not include a main program.","prompt":"In C, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then keep only ASCII letters. 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-c-0089","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"a1699cc382f6dd28d26db13262e1bb62cef740395349879887473991355e050a"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0091","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b20f05421a6eaff24fda5353cd76cd95dc1abc90c3f58efcc1cfe86ff1bd9d0c"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, take the tens digit of its absolute value, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":10,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0096","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"In C, 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-c-0101","language":"c","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 long long solve(long long n). Do not include a main program.","prompt":"In C, 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":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0108","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"In C, 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-c-0109","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"d11401a6612d021b8ed56e05714ef3929de8874799b7d582e23d672b29e982c5"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, square it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":6,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0114","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"In C, 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-c-0117","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"08c8ecc76eceb29eb705d770edcc316b3653d494819461bb1a77abe74215925c"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0130","language":"c","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"dbdd4986e35947d5aa039ddf3fcf0a80e8952270ecc55eea96154270d92026ce"},"output_format":"Return only the function const char *solve(const char *input). Do not include a main program.","prompt":"In C, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, 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-c-0133","language":"c","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7f7eddf8a1ffa511040d241cbcf0b73bfca3a2cebaa59b47415fd95fb9d32fa1"},"output_format":"Return only the function long long solve(long long n). Do not include a main program.","prompt":"In C, Starting with n, replace it with -1, 0, or 1 according to its sign, then double it. Return the result.","reference_solution":null,"tests":[{"expected":2,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-c-0134","language":"c","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 const char *solve(const char *input). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"lo","input":"Hello"},{"expected":"e ","input":"  Code "}],"timeout_seconds":3}
{"category":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-c-0140","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7037a2fbd602315f7eac89abf0e51eeb7b250cc0a523d719dbeb2bbeecf6cfdf"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, Select nonzero items 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-c-0146","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"073f1c94c411aee1d1a9334eaad70736685cdf7275427c490c74296a9033d577"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, Select negative items from values in original order. Return their count. ","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-c-0147","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"bfc5cf866f9706afefd146ea393284d0fbff54eba06f2353539d32a5cdac63a4"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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.","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-c-0148","language":"c","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 long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, 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-c-0154","language":"c","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 long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, 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":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-c-0166","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1.","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-c-0173","language":"c","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 long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, 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-c-0180","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b0b94dd7b2ebac185134c3e631a60d98bad9f2956a0b17c206700db31ca0a4f4"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, Select negative items from values in original order. Return their sum. ","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-c-0182","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, Select all 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-c-0190","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b55f15c1b415ec88e1f39c47cee6c77ab01331c8c995a0376c77624873537476"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-c-0192","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"d1e90678fee2574b4b50756f7505431b379e4be591b9da1b1a79548fa96e94ab"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":2,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-c-0194","language":"c","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 long long solve(const long long *values, int length). Do not include a main program.","prompt":"In C, 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":"moderate","entry_point":"solve","id":"smolscript-c-0217","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b2ec38ef2c8789f4975d427555c81ed73b5690fa35bd589df1b8077390923a89"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-c-0221","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"850bb9db7000bdea88913f6ba3005b96064bca326e87f64635ad07a2275dbea6"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-c-0223","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"aa20e8ad412a4cf1b2ba2f90053a7fdf721edafe00a2116b2f8c2a95fb7807f1"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-c-0224","language":"c","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"2d8e485d3304c40296044758a3a534bd639e39dc103093b7282b2f8680f032b3"},"output_format":"Return only the function long long solve(const long long *values, int length). Do not include a main program.","prompt":"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. ","reference_solution":null,"tests":[{"expected":6,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0001","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"2b49210605af66691ff6e8c9b19a69a4742376f16dedfa59ebc4bd8393cf1a5b"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0004","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"23c3a9505cbad852e68c1326c8a06bef5b124e8a9bdd7920dd23d5a916d8d991"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In Lua, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, 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-lua-0005","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"49f8fdbb60f1cae6b886307f724f98d90548d64b02a6987d9c2249bf9556504f"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, subtract it from ten, then square it. Return the result.","reference_solution":null,"tests":[{"expected":49,"input":3},{"expected":144,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0011","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"c01d2ba720481e0e989078c165588703464f0b70d21597c1a89c949b811bab5c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, subtract it from ten, then replace negative values with zero. 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-lua-0015","language":"lua","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 Lua, 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":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0016","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6f25c0be7e0f9c5b43ec5bc9a99211b55b170681671e03c7b2cd055886543aa6"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"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.","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-lua-0019","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"54db15c538b75bd64e36b07e40318cccacfec346493b565e62c4f1e3c62de39e"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, negate it, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0039","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"5013ffab1b64dbed74a5b0f94f2b126ec7bc5d730a8b57f7064d32551aeb0e5c"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, double it, then take the tens digit of its absolute value. 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-lua-0042","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"7ae86c9a4e837f27c20f75e77d6c32f75e0f4db14c9a3ef3fa28fc03c953e2ba"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"llo","input":"Hello"},{"expected":"ode ","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0056","language":"lua","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 function solve(s). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"e","input":"Hello"},{"expected":" C","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0064","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"1ece2fa0c84b8a2426c9d8cdf63ce9965104975a0208dabf0f8433b791e5bd97"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In Lua, Starting with ASCII string s, keep only decimal digits, then keep characters from index floor(length/2) onward. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0070","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"2ca9e839fa72a29fe2fe908e370c9fde372ede8b642008715505caf3115a483f"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In Lua, Starting with ASCII string s, remove leading and trailing spaces, 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-lua-0073","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"33d734faaae43311ca3e241646fdb7db8f89b9224ae55ce13d679cddbce0022d"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, negate it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":-2,"input":3},{"expected":3,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0077","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":-1,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0078","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cb029e4565eace228c70b527dd72d69afda974890a0bb0cb00b9b8bf8b180b25"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"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.","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-lua-0079","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"4ada95c924813f199f1f1a5c6c0571bae642238cdf2e953ab19ea77fbd9923b8"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, square it, then clamp it to the inclusive range -5 to 5. Return the result.","reference_solution":null,"tests":[{"expected":5,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0080","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0bbe9db9ecbf3c86c96ece94d927d475e757662585e8dc6fe4f5e0f322e2e0b9"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In Lua, Starting with ASCII string s, reverse the characters, then reverse the characters. 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-lua-0084","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0090","language":"lua","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6374a93c754feea9b749d000da47dbf8a54e2c731b3e576f28ee9406cbae811d"},"output_format":"Return only the function function solve(s). Do not include a main program.","prompt":"In Lua, Starting with ASCII string s, remove vowels aeiou in either case, then remove every space. 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-lua-0095","language":"lua","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"ca21dbad84be578f41fda51c55af31d85d2823707bedb248b4aff7aca49b0cd2"},"output_format":"Return only the function function solve(n). Do not include a main program.","prompt":"In Lua, Starting with n, add one, then replace negative values with zero. Return the result.","reference_solution":null,"tests":[{"expected":4,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-lua-0097","language":"lua","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 Lua, 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":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-lua-0125","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7037a2fbd602315f7eac89abf0e51eeb7b250cc0a523d719dbeb2bbeecf6cfdf"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select nonzero items 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-lua-0127","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"3e1db17cdfc25108182387a6ad44ff5f09874b38e8dfb73fd9d9ec12ef7e7df6"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select positive 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":2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-lua-0129","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"e60a689eff23acd8589ebb5a58972b7d473b9091e33870f2d1bdb6726d1b52d8"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select items at even zero-based indices from values in original order. Return their product. The empty product is 1.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-lua-0139","language":"lua","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 Lua, 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":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-lua-0143","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"290f81bbf90160ab72c0f01d5e4f85aab52f95b23572e5654cfa259b8df1360c"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select items at odd zero-based indices from values in original order. Return their count. ","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-lua-0145","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-lua-0151","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1.","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-lua-0158","language":"lua","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 Lua, 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-lua-0159","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ab16998cc25f35f82d44970f5d7e8552ff0b66d080f4f2f3aba0ff4eada28bd0"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select even items from values in original order. Return their maximum minus minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":0,"input":[1,2,3]},{"expected":4,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-lua-0167","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select all 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-lua-0173","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"abc508552cc013a3814770c972b4800101967ee2c4d98f7ec750c069c8b22948"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"In Lua, Select odd items from values in original order. Return their maximum minus minimum. 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":"moderate","entry_point":"solve","id":"smolscript-lua-0181","language":"lua","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 function solve(values). Do not include a main program.","prompt":"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.","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-lua-0183","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"be6804501845e0e77e18501b23e96a1453ce25c8c636c59cdc5554f06044ae14"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"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. ","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-lua-0196","language":"lua","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"06864ec7e4429c1a7f9ac52bf72767cc568f22e0f82fb71a748041b2ae48a185"},"output_format":"Return only the function function solve(values). Do not include a main program.","prompt":"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.","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0003","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0010","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":"He","input":"Hello"},{"expected":" Co","input":"  Code "}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0021","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b1b03d9a1805d617ce5db2dd3ff309bb6adbeb5bb7dc8d9adc45a860677d7c36"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, replace it with 1 if even, otherwise 0, then add one. Return the result.","reference_solution":null,"tests":[{"expected":1,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0025","language":"csharp","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 public static long Solve(long n) inside public class Solution.","prompt":"In C#, 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-csharp-0028","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"In C#, 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":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0032","language":"csharp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"5d477fce742811bbd2a7cdf52e2741729fb4c80cee764c42beced358b3b8f160"},"output_format":"Return only the function public static string Solve(string s) inside public class Solution.","prompt":"In C#, Starting with ASCII string s, keep only decimal digits, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"","input":"Hello"},{"expected":"","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0040","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"In C#, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0051","language":"csharp","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 public static long Solve(long n) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":2,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0056","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":"e","input":"Hello"},{"expected":" C","input":"  Code "}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0057","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"92664e948ac191c999739480c5c8f49dd54732d8b997a15ddee026ebb9c536ba"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, take the tens digit of its absolute value, then double 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-csharp-0068","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":"HELLO","input":"Hello"},{"expected":" CODE ","input":"  Code "}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0076","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"In C#, 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-csharp-0084","language":"csharp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"},"output_format":"Return only the function public static string Solve(string s) inside public class Solution.","prompt":"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.","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-csharp-0099","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7cb15235f756b91de98c00852b9d15f25ca73c0622f1ddf0bd6d01d877a5a68e"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, double it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":-3,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0103","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"f6a4427211b53870014967192031618cc7c6b03fe834454ed215a39efcc070b0"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, add one, then clamp it to the inclusive range -5 to 5. 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-csharp-0105","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"57027a59e0b42e4e807447a395f09b9a45cc3110246ad1b2f78bbd5e3f7635a1"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, add one, then take the tens digit of its absolute value. 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-csharp-0112","language":"csharp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"5ce181db3335aff3b575cc686e85481d76966ba0781b766c221dd4e0a4afd659"},"output_format":"Return only the function public static string Solve(string s) inside public class Solution.","prompt":"In C#, Starting with ASCII string s, convert uppercase ASCII letters to lowercase, then keep only ASCII letters. 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-csharp-0113","language":"csharp","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 public static long Solve(long n) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":3,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0116","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"In C#, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0117","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"08c8ecc76eceb29eb705d770edcc316b3653d494819461bb1a77abe74215925c"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":0,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0119","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"9b5e1457072011a3454786472f7a911324a189ed9fd7feab9e9cf184f66560cf"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, negate it, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":13,"input":3},{"expected":8,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0129","language":"csharp","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"e4e9b1ceafe1559d7b7191fedf0968d7f4496123db80a6a512b28936eb9b895e"},"output_format":"Return only the function public static long Solve(long n) inside public class Solution.","prompt":"In C#, Starting with n, take the last decimal digit of its absolute value, then double it. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":4,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"Solve","id":"smolscript-csharp-0132","language":"csharp","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"3e7e7cb3608459260f6daf3926c6642aece3924558c4f944181c61ad8f078762"},"output_format":"Return only the function public static string Solve(string s) inside public class Solution.","prompt":"In C#, Starting with ASCII string s, reverse the characters, then remove every space. 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-csharp-0134","language":"csharp","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 public static string Solve(string s) inside public class Solution.","prompt":"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.","reference_solution":null,"tests":[{"expected":"lo","input":"Hello"},{"expected":"e ","input":"  Code "}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"Solve","id":"smolscript-csharp-0143","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b620d9bfba5a55d3c665aeaa18075c62a278d6f0dd246ebc0c4483ee2714382a"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select nonzero 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-csharp-0149","language":"csharp","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 public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, 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-csharp-0156","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ceb549e222f9ac0c6272a9ad3784403e48570ffe652cb76c6878c949aabf041c"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select items with absolute value greater than three 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":0,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"Solve","id":"smolscript-csharp-0166","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7473296416ec78ddd0d8559ed09567aa41c6f46cfc2082238f8ed11a87f02646"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select items at odd zero-based indices from values in original order. Return their product. The empty product is 1.","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-csharp-0173","language":"csharp","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 public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, 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-csharp-0175","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"bbb5a3885aedf9121b59faa02f23987013722dbbb6d058a7c81b9375dc0e5776"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select positive items from values in original order. Return their number of distinct values. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"Solve","id":"smolscript-csharp-0176","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"10df1f967ac4e41760384381cc0cd966c29f9d403d173cc97f6bd8695cf684ad"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select items with absolute value at most three 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-csharp-0181","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f7de58b20c4f979112bcd74ce55e46b16f27f0885e24111cdeb2f0df25bc5784"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select items at even zero-based indices from values in original order. Return their number of distinct values. ","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-csharp-0182","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"6a8e0746549b8e7b04060b8c6739c1a29a3f5309b888df5ed75733d7468afdac"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select all 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":"frequency_tables","difficulty":"medium","entry_point":"Solve","id":"smolscript-csharp-0185","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"74d575fca848f398fdda8449bcef6c12640f163d81dca6efaec257b4bee035f0"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select odd items from values in original order. 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":"medium","entry_point":"Solve","id":"smolscript-csharp-0187","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"e160e0c67e818776e1bac59b64d8c6798dc202bbf30337f07d70bb07aec4e3ff"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select all items from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"moderate","entry_point":"Solve","id":"smolscript-csharp-0204","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"dbc19e2bae71d9881bedacdc079131db159b52371496c0d4d2a2dd51ea7cfbd6"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, Select nonzero items from values in original order. For each selected item, square it. Return their sum. ","reference_solution":null,"tests":[{"expected":14,"input":[1,2,3]},{"expected":8,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"moderate","entry_point":"Solve","id":"smolscript-csharp-0205","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"be6804501845e0e77e18501b23e96a1453ce25c8c636c59cdc5554f06044ae14"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"In C#, 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. ","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-csharp-0216","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b2ec38ef2c8789f4975d427555c81ed73b5690fa35bd589df1b8077390923a89"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"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. ","reference_solution":null,"tests":[{"expected":3,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"frequency_tables","difficulty":"moderate","entry_point":"Solve","id":"smolscript-csharp-0222","language":"csharp","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"aa20e8ad412a4cf1b2ba2f90053a7fdf721edafe00a2116b2f8c2a95fb7807f1"},"output_format":"Return only the function public static long Solve(long[] values) inside public class Solution.","prompt":"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. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0002","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"d72b70a400dc3832144dc2eac80cc8ce0f08324063f36287efb727f4c25f92c3"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, convert lowercase ASCII letters to uppercase, then convert uppercase ASCII letters to lowercase. 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-rust-0003","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":7,"input":3},{"expected":12,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0006","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"5c8c1c0f14dde36a09082a2c21bbb69576eac91998e14b0ada08ea0e0b83a9b0"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep the first floor(length/2) characters. Return the result.","reference_solution":null,"tests":[{"expected":"l","input":"Hello"},{"expected":"od","input":"  Code "}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0015","language":"rust","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 fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0017","language":"rust","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 fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0029","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"c7e979d6564facd56943353026d30b702b2b0aa6f6108fadcb564316284c616f"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, add one, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":6,"input":3},{"expected":11,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0030","language":"rust","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 fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, 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-rust-0031","language":"rust","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 fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, 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":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0033","language":"rust","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 fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0046","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cc57555ffbf9802702d5d5dc94e9754a2b569d94f537c32bdbb5ab73e015f675"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, keep the first floor(length/2) characters, then swap the case of 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-rust-0051","language":"rust","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 fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0056","language":"rust","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 fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, 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-rust-0060","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"66691f529e2341f74a3ec4e9d86a8d1e6c1b0bc3f32fda5668e18c9933405261"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, keep characters from index floor(length/2) onward, 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-rust-0063","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"1abf747fd6e7fae059b08f2bf25fbbdd3aeae7c07ea14de0d1647d0dd5a82ae2"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, negate it, then replace it with 1 if even, otherwise 0. Return the result.","reference_solution":null,"tests":[{"expected":0,"input":3},{"expected":1,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0070","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"2ca9e839fa72a29fe2fe908e370c9fde372ede8b642008715505caf3115a483f"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, remove leading and trailing spaces, 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-rust-0083","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"9c552536e51f9330f811ae738d4994138987bcae15c2207b04dc410108266e5f"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, square it, then add one. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":5,"input":-2}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0091","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"b20f05421a6eaff24fda5353cd76cd95dc1abc90c3f58efcc1cfe86ff1bd9d0c"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, take the tens digit of its absolute value, then subtract it from ten. Return the result.","reference_solution":null,"tests":[{"expected":10,"input":3},{"expected":10,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0106","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f1d5bd69b10a080384537c382e3a78baa6faf45e0beb6a93702baa135082f396"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, remove vowels aeiou in either case, 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-rust-0115","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"5c00ec7cacd152f9bc3cf7177508a18352a4c6e010a2c097524597552ca24482"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, subtract it from ten, then double it. Return the result.","reference_solution":null,"tests":[{"expected":14,"input":3},{"expected":24,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0116","language":"rust","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 fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, 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-rust-0132","language":"rust","metadata":{"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"3e7e7cb3608459260f6daf3926c6642aece3924558c4f944181c61ad8f078762"},"output_format":"Return only the function fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, Starting with ASCII string s, reverse the characters, then remove every space. Return the result.","reference_solution":null,"tests":[{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":"  Code "}],"timeout_seconds":3}
{"category":"arithmetic_conditions","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0133","language":"rust","metadata":{"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7f7eddf8a1ffa511040d241cbcf0b73bfca3a2cebaa59b47415fd95fb9d32fa1"},"output_format":"Return only the function fn solve(mut n: i64) -> i64. Do not include a main program.","prompt":"In Rust, Starting with n, replace it with -1, 0, or 1 according to its sign, then double it. Return the result.","reference_solution":null,"tests":[{"expected":2,"input":3},{"expected":-2,"input":-2}],"timeout_seconds":3}
{"category":"strings","difficulty":"easy","entry_point":"solve","id":"smolscript-rust-0134","language":"rust","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 fn solve(mut s: String) -> String. Do not include a main program.","prompt":"In Rust, 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":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-rust-0138","language":"rust","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 fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0148","language":"rust","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 fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0152","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7f9141068fddd28f069edb74a65c43dbd4141365459479489caa6ad106e9c620"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items at even zero-based indices from values in original order. Return their count. ","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-rust-0158","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"290f81bbf90160ab72c0f01d5e4f85aab52f95b23572e5654cfa259b8df1360c"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items at odd zero-based indices from values in original order. Return their count. ","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-rust-0160","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-rust-0165","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"449b8ba12d8e3762e69ba977650487c3b30c50f5c71a2c51f26bcb2bc487769a"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items at odd zero-based indices from values in original order. 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":"medium","entry_point":"solve","id":"smolscript-rust-0176","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"10df1f967ac4e41760384381cc0cd966c29f9d403d173cc97f6bd8695cf684ad"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items with absolute value at most three 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-rust-0178","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"04e4ef9a1e6359877c3ed543a38575c34ced5da7dac4b70e6cca762907fa3ba2"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items with absolute value greater than three from values in original order. 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":"medium","entry_point":"solve","id":"smolscript-rust-0190","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b55f15c1b415ec88e1f39c47cee6c77ab01331c8c995a0376c77624873537476"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items with absolute value at most three from values in original order. Return their first value. Return 0 when none are selected.","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}],"timeout_seconds":3}
{"category":"collections_loops","difficulty":"medium","entry_point":"solve","id":"smolscript-rust-0196","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"93487efb07e2ab4c455cc5e5c80ed09863258fde647ee5bb2fad694c85b578cd"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select items with absolute value at most three 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-rust-0198","language":"rust","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 fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, 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":"frequency_tables","difficulty":"medium","entry_point":"solve","id":"smolscript-rust-0199","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7304131d264fe60c1d19eef4307a3b20ad46de5a67d04c7d42aed76fe04564fa"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select positive items 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":"moderate","entry_point":"solve","id":"smolscript-rust-0203","language":"rust","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 fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, 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":"collections_loops","difficulty":"moderate","entry_point":"solve","id":"smolscript-rust-0214","language":"rust","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 fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, 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-rust-0215","language":"rust","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 fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, 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":"frequency_tables","difficulty":"moderate","entry_point":"solve","id":"smolscript-rust-0221","language":"rust","metadata":{"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"506c6dd09551f4de09b9eac4d2f318c1f3e2f2e41eaa8f2094f91381bd4f00e4"},"output_format":"Return only the function fn solve(values: Vec<i64>) -> i64. Do not include a main program.","prompt":"In Rust, Select all items from values in original order. For each selected item, square it. Return their largest frequency of a value. ","reference_solution":null,"tests":[{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}],"timeout_seconds":3}