{ "task": { "id": "case_122", "name": "check_divisible_by_3", "summary": "Check if each number is divisible by 3.", "examples": [ { "input": [ "BOS", 6, 19, 28, 14, 10, 7, 28, 20, 6 ], "output": [ "BOS", 1, 0, 0, 0, 0, 0, 0, 0, 1 ] }, { "input": [ "BOS", 25, 18, 22, 10, 10, 23, 20, 3, 7 ], "output": [ "BOS", 0, 1, 0, 0, 0, 0, 0, 1, 0 ] }, { "input": [ "BOS", 24, 16, 26, 26, 9, 27, 27, 15, 14 ], "output": [ "BOS", 1, 0, 0, 0, 1, 1, 1, 1, 0 ] }, { "input": [ "BOS", 1, 27, 20, 0, 11, 25, 21, 28, 11 ], "output": [ "BOS", 0, 1, 0, 1, 0, 0, 1, 0, 0 ] }, { "input": [ "BOS", 23, 2, 21, 20, 1, 23, 11, 29, 5 ], "output": [ "BOS", 0, 0, 1, 0, 0, 0, 0, 0, 0 ] } ], "is_categorical": true }, "program": "check_divisible_by_3 = rasp.Map(lambda x: 1 if x % 3 == 0 else 0, rasp.tokens).named(\"check_divisible_by_3\")\nreturn check_divisible_by_3", "components": [ { "id": "L0_MLP", "hook": "blocks.0.mlp.hook_post", "role": { "tag": "INDICATOR", "note": "Outputs 1 when the input number is divisible by 3, otherwise outputs 0." }, "rasp_vars": [ "check_divisible_by_3" ], "labels": [ "map_1" ] } ] }