id stringlengths 17 26 | language stringclasses 9
values | difficulty stringclasses 3
values | category stringclasses 7
values | prompt stringlengths 66 215 | output_format stringclasses 20
values | entry_point stringclasses 4
values | reference_solution null | tests stringlengths 2 79 | timeout_seconds int64 3 3 | metadata stringlengths 175 559 |
|---|---|---|---|---|---|---|---|---|---|---|
smolscript-html-0082 | html | easy | semantic_structure | In HTML, Create a blockquote reading Be kind citing /source. On its outer element, set the hidden attribute. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d52e8ca6ce3848fa3e8588187fa07d580887e3e8185fff8ad70285b6a20ac971"} | |
smolscript-html-0089 | html | easy | semantic_structure | In HTML, Create a preformatted code block reading x = 1. On its outer element, set keyboard focus via tabindex 0. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"8eab8f42a2539107ad7810c499115f1221b5f97943d6728e46770b914bed628c"} | |
smolscript-html-0094 | html | easy | semantic_structure | In HTML, Create a details element with summary More and paragraph Details. On its outer element, set the hidden attribute. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4de8653f64eb138333913e3da0bab60e2d1749d572d20b699af830d7f286e654"} | |
smolscript-html-0095 | html | easy | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"b3d1ff8317abf94950833d8466b39e217733542e6e3dffe6dea0ba2e759d0f96"} | |
smolscript-html-0097 | html | easy | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"3af8a3c1eee98cb76ab4d1fcf9d75638f4cf85ba2e736cbf4ad5e0f5934a243c"} | |
smolscript-html-0100 | html | easy | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"bcb1a6401c609001f19ec9023b7a9e58192a2ad8cb52fbc008b6c75ece42de38"} | |
smolscript-html-0114 | html | easy | semantic_structure | In HTML, Create a Name label associated with input ID username. On its outer element, set contenteditable set to true. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"d541b8e3e8583eda16ebf55a03666821327be18bc96bbde1470381a387f45678"} | |
smolscript-html-0116 | html | easy | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"abdfc2c88b8921c62505df42dbfc844266b850f7b02bee77282f6cd91202025f"} | |
smolscript-html-0118 | html | easy | semantic_structure | In HTML, Create a progress element with maximum 10 and value 4. On its outer element, set the hidden attribute. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"22c86a7c1148b12ec8a0deffb560cb07e1a89597c06551e6f8532072c5cdfc4c"} | |
smolscript-html-0123 | html | medium | semantic_structure | In HTML, Create a div containing an h1 heading reading Welcome, followed by an ordered list containing Open then Close. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"b662f1ffdd480137141eaeb4cdff02d41862d1050396996bcc51dc0914e6c95f"} | |
smolscript-html-0129 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"fe5845deb3f958c0baccdeeeab7d42f6abbb14c5f25461d0fb35ceb635f807fd"} | |
smolscript-html-0130 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"ae120940fc4b730cb7cea7ed74cb835a2cf975fc11b08f73c989aed8aceec371"} | |
smolscript-html-0143 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"1a2ed68116827ccb1b9bc9e0decce57ebb28358f6736136e0a332985e7cdbfea"} | |
smolscript-html-0146 | html | medium | semantic_structure | In HTML, Create a aside containing an unordered list containing Tea then Water, followed by a footer reading Copyright. Return an HTML fragment. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"8d8cfaad53bb0f24e78d20f4d2e2ad695b2e533a9c8d3f20c4e387d55e0af7d2"} | |
smolscript-html-0160 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"24ebad48c5d37cb9c239739131f97ff3043a9c9ec765ba924ef86fd63fa2babb"} | |
smolscript-html-0164 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"0569b4774c968e9424fb0e1692b72d3127fab299a4aba15b35ff220d08666092"} | |
smolscript-html-0165 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"a4fff1273cd9a0973bf0b5040a495b5e1523552115e504bf1830878f3acf372d"} | |
smolscript-html-0166 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"8df3f46722d4f9a91a0ee7165b0acb249c58488e9082e18be7fe89e2f145fca5"} | |
smolscript-html-0169 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"4510a25e502e6ef8de4f122ca65c91da8293088161d0dd70413e1c65633be626"} | |
smolscript-html-0170 | html | medium | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"ebb021b50efa6a302b1d410d3898ed9aa7328e15483a8f0f53bbbcd4de177fb5"} | |
smolscript-html-0184 | html | moderate | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"7a693069c149194ec1d6deb89efe346423fcea2430c7938df7014e0d938bf68d"} | |
smolscript-html-0188 | html | moderate | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"f5653a2f824070ace6a821e9904272183dbbe4e4b542594405f196e2cb349f7f"} | |
smolscript-html-0195 | html | moderate | semantic_structure | 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. | Return an HTML fragment only. | null | [] | 3 | {"base_css":"","family":"html","fixture":"","input_domain":null,"protocol":"smolscript-0.3.0","semantic_id":"c371f709ce4fd622278aa3fda27138c21c10e68f6f297081dca159d1c35b9bb2"} | |
smolscript-css-0010 | css | easy | styles_layout | In CSS, Style every element with class target: set font-weight to 700. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0012 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set font-weight to 700. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0013 | css | easy | styles_layout | In CSS, Style every element with class target: set font-style to italic. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0021 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set text-transform to uppercase. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0026 | css | easy | styles_layout | In CSS, Style only the element with ID target: set word-spacing to 4px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0030 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set line-height to 28px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0041 | css | easy | styles_layout | In CSS, Style only the element with ID target: set padding-right to 10px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0046 | css | easy | styles_layout | In CSS, Style every element with class target: set padding-left to 14px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0054 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set margin-right to 8px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0056 | css | easy | styles_layout | In CSS, Style only the element with ID target: set margin-bottom to 10px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0058 | css | easy | styles_layout | In CSS, Style every element with class target: set margin-left to 12px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0060 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set margin-left to 12px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0062 | css | easy | styles_layout | In CSS, Style only the element with ID target: set border-top-width to 3px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0067 | css | easy | styles_layout | In CSS, Style every element with class target: set border-radius to 6px. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0072 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set opacity to 0.5. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0095 | css | easy | styles_layout | In CSS, Style only the element with ID target: set justify-content to center. Use flex display. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0096 | css | easy | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0106 | css | easy | styles_layout | In CSS, Style every element with class target: set top to 5px. Use relative positioning. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0108 | css | easy | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0111 | css | easy | styles_layout | In CSS, Style only direct children of #scope having class target: set overflow-x to hidden. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0113 | css | easy | styles_layout | In CSS, Style only the element with ID target: set visibility to hidden. Leave other elements unchanged. Return CSS only. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0122 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0124 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0127 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0136 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0138 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0157 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0165 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0166 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0176 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0179 | css | medium | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0181 | css | moderate | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0187 | css | moderate | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0189 | css | moderate | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-css-0197 | css | moderate | styles_layout | 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. | Return a stylesheet only. | null | [] | 3 | {"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><sp... | |
smolscript-cpp-0003 | cpp | easy | arithmetic_conditions | In C++, Starting with n, clamp it to the inclusive range -5 to 5, then subtract it from ten. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":7,"input":3},{"expected":12,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"7c8efc7e37e7026e7e0bcacdf4e2bbdac144ddbe07576c4b102ca139d2c3509d"} |
smolscript-cpp-0025 | cpp | easy | arithmetic_conditions | In C++, Starting with n, take the last decimal digit of its absolute value, then negate it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":-3,"input":3},{"expected":-2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"07ddda8434ac5983b5a6c0b67c87a8da516445cf349889e927de0268c1dedc9a"} |
smolscript-cpp-0046 | cpp | easy | strings | In C++, Starting with ASCII string s, keep the first floor(length/2) characters, then swap the case of ASCII letters. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"hE","input":"Hello"},{"expected":" c","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"cc57555ffbf9802702d5d5dc94e9754a2b569d94f537c32bdbb5ab73e015f675"} |
smolscript-cpp-0054 | cpp | easy | strings | In C++, Starting with ASCII string s, keep the first floor(length/2) characters, then remove vowels aeiou in either case. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"H","input":"Hello"},{"expected":" C","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"ccc0fa988c623cda4908f86f653c6376bde36ae1930cd4319dad76c89deeb71e"} |
smolscript-cpp-0058 | cpp | easy | strings | In C++, Starting with ASCII string s, keep characters from index floor(length/2) onward, then remove every space. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"llo","input":"Hello"},{"expected":"ode","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"7c7c10d795bfbc32415221aadc497256881583f114d7842173d6957da6c65b1c"} |
smolscript-cpp-0060 | cpp | easy | strings | In C++, Starting with ASCII string s, keep characters from index floor(length/2) onward, then keep only decimal digits. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"","input":"Hello"},{"expected":"","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"66691f529e2341f74a3ec4e9d86a8d1e6c1b0bc3f32fda5668e18c9933405261"} |
smolscript-cpp-0061 | cpp | easy | arithmetic_conditions | In C++, Starting with n, replace it with 1 if even, otherwise 0, then negate it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":-1,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"1dfdbc1e0434d191f7c2f348cb6956a91959cc27ffe5e3b6ead4e8cfb40961fb"} |
smolscript-cpp-0062 | cpp | easy | strings | In C++, Starting with ASCII string s, reverse the characters, then remove leading and trailing spaces. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"olleH","input":"Hello"},{"expected":"edoC","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"4bb993e8ac243d894f67c3104a629c799ff47fec3301edaab06a1f8bd1a0aa9b"} |
smolscript-cpp-0065 | cpp | easy | arithmetic_conditions | In C++, Starting with n, double it, then subtract it from ten. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":4,"input":3},{"expected":14,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"255e8c11474e0b1dab4cf157b14f5eebed34011215128a194776f0ca9b68a088"} |
smolscript-cpp-0077 | cpp | easy | arithmetic_conditions | In C++, Starting with n, replace it with 1 if negative, otherwise 0, then negate it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":-1,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6f9cfd44a2ae6212abe7c381fc0f7593cf38e21a52baa03ddd0c2f57b87595e2"} |
smolscript-cpp-0079 | cpp | easy | arithmetic_conditions | In C++, Starting with n, square it, then clamp it to the inclusive range -5 to 5. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":5,"input":3},{"expected":4,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"4ada95c924813f199f1f1a5c6c0571bae642238cdf2e953ab19ea77fbd9923b8"} |
smolscript-cpp-0084 | cpp | easy | strings | In C++, Starting with ASCII string s, keep characters from index floor(length/2) onward, then swap the case of ASCII letters. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"LLO","input":"Hello"},{"expected":"ODE ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"f83f2008eded59ef5ca23f2471a6546b2ff75c59cd99a61920e96e713c9720a7"} |
smolscript-cpp-0090 | cpp | easy | strings | In C++, Starting with ASCII string s, remove vowels aeiou in either case, then remove every space. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"Hll","input":"Hello"},{"expected":"Cd","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"6374a93c754feea9b749d000da47dbf8a54e2c731b3e576f28ee9406cbae811d"} |
smolscript-cpp-0096 | cpp | easy | strings | In C++, Starting with ASCII string s, keep the first floor(length/2) characters, then reverse the characters. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"eH","input":"Hello"},{"expected":"C ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"e533501c80778ea11cdea8dd707e77585dcd25d5c047f485c6459155db83dfa7"} |
smolscript-cpp-0097 | cpp | easy | arithmetic_conditions | In C++, Starting with n, double it, then square it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":36,"input":3},{"expected":16,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"696da44f39e4f5cae04885b8ffeac48c8965adb71666c160f3543c1a48384073"} |
smolscript-cpp-0098 | cpp | easy | strings | In C++, Starting with ASCII string s, keep only ASCII letters, then keep only decimal digits. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"","input":"Hello"},{"expected":"","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"ffc1dec30a21e634f9ccf70156331bd52f21220b955f42f2f032634c597deca1"} |
smolscript-cpp-0100 | cpp | easy | strings | In C++, Starting with ASCII string s, reverse the characters, then keep only decimal digits. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"","input":"Hello"},{"expected":"","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"8614ef4c973a29c090e4de61192a06996fcb89aa773f543d5d897ca61b99c6b5"} |
smolscript-cpp-0107 | cpp | easy | arithmetic_conditions | 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. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":0,"input":3},{"expected":0,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"3ca1fdde7f6a21e4364bf1f85bc0bed67e32b154d6c427f187196158f230e06f"} |
smolscript-cpp-0108 | cpp | easy | strings | In C++, Starting with ASCII string s, keep the first floor(length/2) characters, then remove leading and trailing spaces. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"He","input":"Hello"},{"expected":"C","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"d0fe6923b7cbbe3ec508fa7ee1adaa7d8c9154e032220744a9704f9b9ad424e5"} |
smolscript-cpp-0113 | cpp | easy | arithmetic_conditions | In C++, Starting with n, clamp it to the inclusive range -5 to 5, then clamp it to the inclusive range -5 to 5. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":3,"input":3},{"expected":-2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"503f50fc6029dfb81c0fc3a51b54fe4565d3d6519ffc96331d93b38831befd33"} |
smolscript-cpp-0115 | cpp | easy | arithmetic_conditions | In C++, Starting with n, subtract it from ten, then double it. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":14,"input":3},{"expected":24,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"5c00ec7cacd152f9bc3cf7177508a18352a4c6e010a2c097524597552ca24482"} |
smolscript-cpp-0121 | cpp | easy | arithmetic_conditions | In C++, Starting with n, replace it with -1, 0, or 1 according to its sign, then subtract it from ten. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":9,"input":3},{"expected":11,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"6ca778afcd9f9afaa0ae77e9ae6aac398bda6417b025d7f086e0eab9599c4635"} |
smolscript-cpp-0122 | cpp | easy | strings | In C++, Starting with ASCII string s, keep only ASCII letters, then keep the first floor(length/2) characters. Return the result. | Return only the function std::string solve(std::string s). Do not include a main program. | solve | null | [{"expected":"He","input":"Hello"},{"expected":"Co","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0cb8f8f54c155084bb23eeff7e9a2671174d4399873231fe7c4a0708f0431ed4"} |
smolscript-cpp-0135 | cpp | easy | arithmetic_conditions | In C++, Starting with n, subtract it from ten, then take the last decimal digit of its absolute value. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":7,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"16c9cd1bf71a9676211614dc2a6d48d9461a10bb4f0631b8ccd28aec1edd016d"} |
smolscript-cpp-0136 | cpp | medium | collections_loops | In C++, Select odd items from values in original order. Return their minimum. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"b76b5d108afa118e194c6a5926348b492bacd2139d36b23fc6f4947ee6a308a8"} |
smolscript-cpp-0137 | cpp | medium | collections_loops | In C++, Select negative items from values in original order. Return their number of distinct values. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"f6d14a18911c2bce0541261858cb9e4dfc8c952859895457473813933d14b636"} |
smolscript-cpp-0149 | cpp | medium | collections_loops | In C++, Select all items from values in original order. Return their last value. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"76bad3bb58e6ff67ffaf7145ba1aa9ba2511435c8e8ec4441af1dc3aff0a2585"} |
smolscript-cpp-0150 | cpp | medium | collections_loops | In C++, Select all items from values in original order. Return their minimum. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"203899422266dc69d0c6dc6f2f0b04a7f8d61529702fd9f5d8a5f70f73391b5f"} |
smolscript-cpp-0151 | cpp | medium | collections_loops | In C++, Select positive items from values in original order. Return their maximum minus minimum. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"28cb3420d8419e10490c77c8eb80f9baef5d1d79a903000a55dca89173696be9"} |
smolscript-cpp-0154 | cpp | medium | collections_loops | In C++, Select nonzero items from values in original order. Return their product. The empty product is 1. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":6,"input":[1,2,3]},{"expected":-4,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"3f13e1e2e638fcc61c94b3d84914471e61b7549a943c973f1329e05d6d14a88d"} |
smolscript-cpp-0156 | cpp | medium | collections_loops | In C++, Select items with absolute value greater than three from values in original order. Return their minimum. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"ceb549e222f9ac0c6272a9ad3784403e48570ffe652cb76c6878c949aabf041c"} |
smolscript-cpp-0160 | cpp | medium | collections_loops | In C++, Select nonzero items from values in original order. Return their minimum. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"89278f784ef636295e87a12b13d38f3fd77a9a3afc39646cf2268e162a6dd2a0"} |
smolscript-cpp-0168 | cpp | medium | frequency_tables | In C++, Select items at odd zero-based indices from values in original order. Return their largest frequency of a value. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"96ecc563a3584cd4d5eeaf7f89f323615da9907a3a2fc5cf8591967cdce01193"} |
smolscript-cpp-0176 | cpp | medium | collections_loops | In C++, Select items with absolute value at most three from values in original order. Return their maximum. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":3,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"10df1f967ac4e41760384381cc0cd966c29f9d403d173cc97f6bd8695cf684ad"} |
smolscript-cpp-0178 | cpp | medium | collections_loops | 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. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":0,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"04e4ef9a1e6359877c3ed543a38575c34ced5da7dac4b70e6cca762907fa3ba2"} |
smolscript-cpp-0187 | cpp | medium | collections_loops | In C++, Select all items from values in original order. Return their first value. Return 0 when none are selected. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":-2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"e160e0c67e818776e1bac59b64d8c6798dc202bbf30337f07d70bb07aec4e3ff"} |
smolscript-cpp-0213 | cpp | moderate | collections_loops | 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. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":2,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"30b02aeccf1bbd5f2e95bf24917746454ae7860a6bf5ceb347dc118610e9a6ab"} |
smolscript-cpp-0215 | cpp | moderate | collections_loops | 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. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"7855867b78c8421e299b7eaa78f023d5998cf9f7ff94b505c02342acfa61116a"} |
smolscript-cpp-0220 | cpp | moderate | collections_loops | 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. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":0,"input":[1,2,3]},{"expected":-1,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"0bca1976da5f6d21a0c2331dba0c1f31b07f80cd1ddcd52a05ea937761a2022b"} |
smolscript-cpp-0222 | cpp | moderate | frequency_tables | In C++, Select all items from values in original order. For each selected item, square it. Return their largest frequency of a value. | Return only the function long long solve(const std::vector<long long>& values). Do not include a main program. | solve | null | [{"expected":1,"input":[1,2,3]},{"expected":2,"input":[-2,0,2]}] | 3 | {"family":"array","input_domain":"At most eight integers, each from -6 to 6.","protocol":"smolscript-0.3.0","semantic_id":"506c6dd09551f4de09b9eac4d2f318c1f3e2f2e41eaa8f2094f91381bd4f00e4"} |
smolscript-c-0001 | c | easy | arithmetic_conditions | In C, Starting with n, replace it with 1 if negative, otherwise 0, then add one. Return the result. | Return only the function long long solve(long long n). Do not include a main program. | solve | null | [{"expected":1,"input":3},{"expected":2,"input":-2}] | 3 | {"family":"scalar","input_domain":"Integer n from -120 to 120.","protocol":"smolscript-0.3.0","semantic_id":"2b49210605af66691ff6e8c9b19a69a4742376f16dedfa59ebc4bd8393cf1a5b"} |
smolscript-c-0024 | c | easy | strings | In C, Starting with ASCII string s, remove vowels aeiou in either case, then swap the case of ASCII letters. Return the result. | Return only the function const char *solve(const char *input). Do not include a main program. | solve | null | [{"expected":"hLL","input":"Hello"},{"expected":" cD ","input":" Code "}] | 3 | {"family":"string","input_domain":"ASCII s of at most 80 characters, without newlines.","protocol":"smolscript-0.3.0","semantic_id":"0d95f52f5088fefd4f8c192de3db4a6065ef8dd61fbf5d795f65800b9e89ebc6"} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.