kingy.wikiIndependent measurements

anthropic / EXACT API MODEL

Claude Sonnet 5.5

Claude direct API, Standard global

claude-sonnet-5-5

Coding

Insufficient evidence

Two adjacent completed weeks need comparable cohorts. Missing weeks and changed contracts cannot establish a trend.

tested-best-bank-v2-reviewed

Separate measurement contract · 1 measured cohort · 07a1f808bc18

0%25%50%75%100%2026-10-05 UTC
Each dot is one measured cohort. Bars summarize task/repeat variation; they do not estimate week-to-week noise from one cohort. No interpolation across missing weeks.
coding measurements and service behavior
Measured UTCPass rate95% bandAttemptsResponsesProvider failuresMedian latencyCapped / refusal flagsReceipts
2026-10-05 05:5486.1%66.7%–100.0%36 / 3636 / 3601.95 s0 / 0Original JSON
Measurement contract and limitations
Task-bank SHA-256
fce29b4d66cfddeab39632d451935271a37df595374b40eacd300201e3726291
Protocol SHA-256
90b114dd8a70ecbf3aecc35f58cea1ba85c786554aee9835a38a1c518293da05
Grader contract
62980813a06357fd89c914858db26855ffe2bd65a7e18f326d827fb6610e7e23
Model configuration
04e4af3ce275b597cf00f2c7dc53d1c4bd14f4df1016870506fb403d1da26a0e

One point is one cohort, not a week of daily tests.

Exact returned model identity was validated by the source runner; the public projection exposes the admitted ID and response hash.

Hidden fixtures and private transport responses remain with the source owner.

Inspect 36 retained attempts
coding-allocate · repeat 3 · Pass

checked · responded · 2026-10-05T05:54:04.481418+00:00 UTC

Request: req_011Cfia7f13DrCtAtg84rXWr. Estimated cost: US$0.003102. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {total:nonnegative integer,weights:[nonnegative integer,...]}. Allocate proportionally using largest remainders: floor each share, then give leftover cents to largest fractional remainders, ties to lower index. If weights empty return []; if all zero return zeros.

Retained output

import math

def solve(data):
    total = data["total"]
    weights = data["weights"]
    n = len(weights)
    if n == 0:
        return []
    s = sum(weights)
    if s == 0:
        return [0] * n
    base = []
    rems = []
    for i, w in enumerate(weights):
        q, r = divmod(total * w, s)
        base.append(q)
        rems.append((-r, i))
    left = total - sum(base)
    order = sorted(rems)
    for k in range(left):
        base[order[k][1]] += 1
    return base

Response SHA-256: f2c2701446174761de1d5dee2d19f09166690a63cc308219ed3bcbe340c45e57

coding-redact · repeat 1 · Pass

checked · responded · 2026-10-05T05:42:48.244942+00:00 UTC

Request: req_011CfiZFr2fnWfzf1sCT8LGY. Estimated cost: US$0.002588. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is arbitrary JSON. Recursively remove dictionary keys whose lowercase spelling equals password, token or secret. Preserve other values and list order; never mutate the original.

Retained output

def solve(data):
    banned = {"password", "token", "secret"}

    def clean(x):
        if isinstance(x, dict):
            result = {}
            for k, v in x.items():
                if isinstance(k, str) and k.lower() in banned:
                    continue
                result[k] = clean(v)
            return result
        if isinstance(x, list):
            return [clean(i) for i in x]
        return x

    return clean(data)

Response SHA-256: ac95cd620fcde22f85dddff1b2755b77b12919677341986f10b9e19d5a487dda

coding-slug · repeat 1 · Fail

execution_rejected · responded · 2026-10-05T05:45:17.193281+00:00 UTC

Request: req_011CfiZSZu86g3WJ9861rC4q. Estimated cost: US$0.005854. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a string. Apply Unicode NFKD normalization, drop combining marks, lowercase, retain only ASCII a-z and digits, replace each run of other characters with one hyphen, strip edge hyphens. Return the slug.

Retained output

The approach is to normalize the input to NFKD, drop combining marks, lowercase it, then turn every run of characters outside a-z and 0-9 into a single hyphen and strip hyphens from the ends.

Lowercasing after NFKD is safe. A few characters, such as "İ", decompose into "I" plus a combining dot, so the combining mark is dropped and "i" remains. Lowercasing a string can also produce new combining characters, so I lowercase first and then remove combining marks.

To be safe I do the steps in this order:
1. Normalize with NFKD.
2. Lowercase.
3. Drop combining marks.
4. Replace runs of non-[a-z0-9] characters with a hyphen.
5. Strip hyphens from the edges.

A character that lowercases to several characters, like "İ" becoming "i̇", is handled by the combining-mark removal in step 3. Because the regex matches only ASCII a-z and digits, anything non-ASCII is replaced. Dropped combining marks are removed outright and do not produce a hyphen.

```python
import unicodedata
import re

def solve(data):
    s = unicodedata.normalize('NFKD', data)
    s = s.lower()
    s = ''.join(c for c in s if not unicodedata.combining(c))
    s = re.sub(r'[^a-z0-9]+', '-', s)
    return s.strip('-')
```

Response SHA-256: febcfb8b09fedc5409c24efd15e393e0d68ae2f27110374054ea9076d37635b6

coding-rate · repeat 3 · Fail

execution_rejected · responded · 2026-10-05T05:53:28.239401+00:00 UTC

Request: req_011Cfia4sbEpLZR5sfHgzQd5. Estimated cost: US$0.004736. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {limit:positive integer,window:positive integer,events:[{user,time},...]}. Times are nondecreasing integer seconds. Process in input order. Accept only when fewer than limit previously accepted events for that user have times strictly greater than time-window. Rejections do not consume allowance. Return a list of booleans. User IDs are strings.

Retained output

The approach is a sliding window per user, kept as a deque of accepted times. For each event at time t, drop accepted times that are at or below t - window, since only times strictly greater than t - window count. If fewer than `limit` remain, accept the event and record its time. Otherwise reject it, which leaves the allowance unchanged.

Times are nondecreasing, so pruning from the left is safe: a time dropped for one event would also be dropped for every later event.

The input is not mutated, and events are read only through `e["user"]` and `e["time"]`.

import collections is needed for deque.

import collections

def solve(data):
    limit = data["limit"]
    window = data["window"]
    dq = collections.defaultdict(collections.deque)
    res = []
    for e in data["events"]:
        u = e["user"]
        t = e["time"]
        d = dq[u]
        while d and d[0] <= t - window:
            d.popleft()
        if len(d) < limit:
            d.append(t)
            res.append(True)
        else:
            res.append(False)
    return res

Response SHA-256: 51f441a2bb231f2daf03051c75ebe850adeec28e4d1977983722a15f2701b5b0

coding-csv · repeat 2 · Pass

checked · responded · 2026-10-05T05:49:04.287268+00:00 UTC

Request: req_011CfiZjYK6hTfHTM2JSqSvo. Estimated cost: US$0.003514. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is CSV text with header customer,cents, including quoted fields. Treat a customer containing only whitespace as blank. Trim surrounding whitespace from cents, then accept only an optional ASCII + or - followed by one or more ASCII digits 0-9. Ignore blank customers and invalid cents. Sum by customer and return a dictionary, including zero totals. Preserve customer spelling. CSV quoting is valid and the header is exactly customer,cents. Ignore rows missing either field or containing extra fields. Ignore empty lines. Whitespace means Python str.strip() whitespace. No dictionary key order is required.

Retained output

import csv
import io
import re

def solve(data):
    reader = csv.reader(io.StringIO(data))
    pat = re.compile(r'[+-]?[0-9]+')
    totals = {}
    first = True
    for row in reader:
        if first:
            first = False
            continue
        if not row:
            continue
        if len(row) != 2:
            continue
        cust, cents = row[0], row[1].strip()
        if cust.strip() == "":
            continue
        if not pat.fullmatch(cents):
            continue
        totals[cust] = totals.get(cust, 0) + int(cents)
    return totals

Response SHA-256: eaed3316867b2b4a718cf2849d017648cbc2cbfcbc116a78534df333223f0890

coding-dedup · repeat 1 · Pass

checked · responded · 2026-10-05T05:42:05.825140+00:00 UTC

Request: req_011CfiZChqDVMfCqeLHuYW6r. Estimated cost: US$0.002010. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a list of {id, version, value}. Keep the highest version for each id; on equal version keep the last occurrence. Return the retained objects sorted lexicographically by id. Do not mutate the input. IDs are strings, versions are integers, and values are arbitrary JSON.

Retained output

def solve(data):
    best = {}
    for item in data:
        k = item["id"]
        if k not in best or item["version"] >= best[k]["version"]:
            best[k] = item
    return [best[k] for k in sorted(best)]

Response SHA-256: ad0e546a018bda5ba8451699c4bbef6342e3902071e84d1d52a58751a4f9f95f

coding-reconcile · repeat 2 · Pass

checked · responded · 2026-10-05T05:48:54.773527+00:00 UTC

Request: req_011CfiZirgs7ayUzT6ofKKth. Estimated cost: US$0.002892. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input has invoices and payments lists of {id, cents}. Sum amounts by id; payments subtract from invoices. Return a dict of nonzero outstanding amounts with dictionary iteration keys sorted lexicographically by id, including negative overpayments. IDs are strings. Empty lists are valid. Amounts in cents are integers.

Retained output

def solve(data):
    totals = {}
    for inv in data.get("invoices", []):
        k = inv["id"]
        totals[k] = totals.get(k, 0) + inv["cents"]
    for pay in data.get("payments", []):
        k = pay["id"]
        totals[k] = totals.get(k, 0) - pay["cents"]
    result = {}
    for k in sorted(totals):
        if totals[k] != 0:
            result[k] = totals[k]
    return result

Response SHA-256: 6b65bb0c831923871d509edd770425fe7b1bdbaae66ed70a422a829cd8f72791

coding-rate · repeat 1 · Pass

checked · responded · 2026-10-05T05:42:56.871506+00:00 UTC

Request: req_011CfiZGTz8swGVDpWdqD28R. Estimated cost: US$0.002936. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {limit:positive integer,window:positive integer,events:[{user,time},...]}. Times are nondecreasing integer seconds. Process in input order. Accept only when fewer than limit previously accepted events for that user have times strictly greater than time-window. Rejections do not consume allowance. Return a list of booleans. User IDs are strings.

Retained output

def solve(data):
    from collections import deque, defaultdict
    limit = data["limit"]
    window = data["window"]
    acc = defaultdict(deque)
    res = []
    for ev in data["events"]:
        u = ev["user"]
        t = ev["time"]
        d = acc[u]
        while d and d[0] <= t - window:
            d.popleft()
        if len(d) < limit:
            d.append(t)
            res.append(True)
        else:
            res.append(False)
    return res

Response SHA-256: cb1c16319d5223b5c1de328983d0ac4450dfc3ebd81f0ece8a34c4cdd5ab1e6d

coding-dependencies · repeat 3 · Pass

checked · responded · 2026-10-05T05:53:53.637534+00:00 UTC

Request: req_011Cfia6qFR1cHF7aUDLRjGX. Estimated cost: US$0.004310. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a dict mapping each named job to prerequisite names. Include names referenced only as prerequisites. Return the lexicographically smallest valid topological order, choosing the smallest ready name at every step. Return null for any cycle. Job and prerequisite names are strings; prerequisites are lists. Repeated names in a prerequisite list denote the same dependency. Referenced-only names have no prerequisites. A self-dependency is a cycle. Return Python None for a cycle.

Retained output

import heapq

def solve(data):
    nodes = set()
    edges = {}
    for job, prereqs in data.items():
        nodes.add(job)
        for p in prereqs:
            nodes.add(p)
    indeg = {n: 0 for n in nodes}
    children = {n: set() for n in nodes}
    for job, prereqs in data.items():
        for p in set(prereqs):
            children[p].add(job)
            indeg[job] += 1
    heap = [n for n in nodes if indeg[n] == 0]
    heapq.heapify(heap)
    result = []
    while heap:
        n = heapq.heappop(heap)
        result.append(n)
        for c in children[n]:
            indeg[c] -= 1
            if indeg[c] == 0:
                heapq.heappush(heap, c)
    if len(result) != len(nodes):
        return None
    return result

Response SHA-256: 508301f375bba0eb2050fa4d996e1a05d460764bd6b5d7e72c936b6a7ab06ede

coding-fifo · repeat 3 · Pass

checked · responded · 2026-10-05T05:50:30.212021+00:00 UTC

Request: req_011CfiZqtD6FsonerGbK9QR8. Estimated cost: US$0.002646. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {lots:[[quantity,unit_cents],...], sold:nonnegative integer}. Sell in lot order. Return {remaining_units,remaining_value_cents,unfilled_units}. All quantities/prices nonnegative; unfilled is sales beyond available inventory. Quantities and unit prices are integers.

Retained output

def solve(data):
    lots = data["lots"]
    sold = data["sold"]
    need = sold
    units = 0
    value = 0
    for q, p in lots:
        take = min(q, need)
        need -= take
        rem = q - take
        units += rem
        value += rem * p
    return {
        "remaining_units": units,
        "remaining_value_cents": value,
        "unfilled_units": need,
    }

Response SHA-256: e7f6de203be51bbfc06130a789834e26336e505730340c69681fddc5ac92b8ea

coding-intervals · repeat 1 · Pass

checked · responded · 2026-10-05T05:45:24.197754+00:00 UTC

Request: req_011CfiZTMsLuSiYsvLZMcMrn. Estimated cost: US$0.002488. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a list of [start,end] integer half-open intervals, with start<=end. Drop empty intervals; merge overlapping or touching intervals. Return sorted merged intervals without mutating input.

Retained output

def solve(data):
    items = []
    for iv in data:
        s, e = iv[0], iv[1]
        if s < e:
            items.append((s, e))
    items.sort()
    res = []
    for s, e in items:
        if res and s <= res[-1][1]:
            if e > res[-1][1]:
                res[-1][1] = e
        else:
            res.append([s, e])
    return res

Response SHA-256: 3d7fc36b92eb93608b02a41ce36ff69170a53e0ffefa73f6646b74074cc58a34

coding-percentile · repeat 1 · Pass

checked · responded · 2026-10-05T05:41:33.700315+00:00 UTC

Request: req_011CfiZALRZ8j3BbxJmJx5Wr. Estimated cost: US$0.002408. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {values:[finite numbers,...],p:number in [0,100]}. Return nearest-rank percentile: sorted values at 1-based rank max(1,ceil(p/100*n)). Return null for no values. Do not interpolate or mutate input.

Retained output

import math

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = max(1, math.ceil(p / 100 * n))
    rank = min(rank, n)
    return s[rank - 1]

Response SHA-256: fed30c86a18c7feaf73b60a00d3c06abdfe2c82d0e4f700d9c8306c78eb61c2d

coding-percentile · repeat 2 · Pass

checked · responded · 2026-10-05T05:48:08.753062+00:00 UTC

Request: req_011CfiZfUVoGkznt4djBabYu. Estimated cost: US$0.002408. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {values:[finite numbers,...],p:number in [0,100]}. Return nearest-rank percentile: sorted values at 1-based rank max(1,ceil(p/100*n)). Return null for no values. Do not interpolate or mutate input.

Retained output

import math

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = max(1, math.ceil(p / 100 * n))
    rank = min(rank, n)
    return s[rank - 1]

Response SHA-256: a595e7af585b4870e87432c456f560d6f5dafea8844a0a58e49b505bc3021dad

coding-rate · repeat 2 · Pass

checked · responded · 2026-10-05T05:47:21.519270+00:00 UTC

Request: req_011CfiZbyWBq1K8dJgM63MR6. Estimated cost: US$0.002936. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {limit:positive integer,window:positive integer,events:[{user,time},...]}. Times are nondecreasing integer seconds. Process in input order. Accept only when fewer than limit previously accepted events for that user have times strictly greater than time-window. Rejections do not consume allowance. Return a list of booleans. User IDs are strings.

Retained output

def solve(data):
    from collections import deque, defaultdict
    limit = data["limit"]
    window = data["window"]
    acc = defaultdict(deque)
    res = []
    for ev in data["events"]:
        u = ev["user"]
        t = ev["time"]
        d = acc[u]
        while d and d[0] <= t - window:
            d.popleft()
        if len(d) < limit:
            d.append(t)
            res.append(True)
        else:
            res.append(False)
    return res

Response SHA-256: e13c8db5e2aa33a7731c7d4420ce87d3bc57a32edc09c21916028f54e5890f5c

coding-intervals · repeat 2 · Pass

checked · responded · 2026-10-05T05:48:45.797119+00:00 UTC

Request: req_011CfiZiDjMy6zScMgCRYPM4. Estimated cost: US$0.002508. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a list of [start,end] integer half-open intervals, with start<=end. Drop empty intervals; merge overlapping or touching intervals. Return sorted merged intervals without mutating input.

Retained output

def solve(data):
    items = []
    for iv in data:
        s = iv[0]
        e = iv[1]
        if s < e:
            items.append((s, e))
    items.sort()
    res = []
    for s, e in items:
        if res and s <= res[-1][1]:
            if e > res[-1][1]:
                res[-1][1] = e
        else:
            res.append([s, e])
    return res

Response SHA-256: c4b9e15ae1e23cb20e89202963a8efa311a562d95a2bf98253ebea0bace66acf

coding-dedup · repeat 2 · Pass

checked · responded · 2026-10-05T05:49:59.679736+00:00 UTC

Request: req_011CfiZofTpwHmJrzvQLc66t. Estimated cost: US$0.002010. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a list of {id, version, value}. Keep the highest version for each id; on equal version keep the last occurrence. Return the retained objects sorted lexicographically by id. Do not mutate the input. IDs are strings, versions are integers, and values are arbitrary JSON.

Retained output

def solve(data):
    best = {}
    for item in data:
        k = item["id"]
        if k not in best or item["version"] >= best[k]["version"]:
            best[k] = item
    return [best[k] for k in sorted(best)]

Response SHA-256: d867fc5579d495be4a769ba617ebb3a9f1e76df42c6e204a8f2324e3e76bf1d4

coding-csv · repeat 1 · Pass

checked · responded · 2026-10-05T05:42:34.039679+00:00 UTC

Request: req_011CfiZEkxYNvcq4d1Rv6Zbt. Estimated cost: US$0.003544. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is CSV text with header customer,cents, including quoted fields. Treat a customer containing only whitespace as blank. Trim surrounding whitespace from cents, then accept only an optional ASCII + or - followed by one or more ASCII digits 0-9. Ignore blank customers and invalid cents. Sum by customer and return a dictionary, including zero totals. Preserve customer spelling. CSV quoting is valid and the header is exactly customer,cents. Ignore rows missing either field or containing extra fields. Ignore empty lines. Whitespace means Python str.strip() whitespace. No dictionary key order is required.

Retained output

import csv
import io
import re

def solve(data):
    reader = csv.reader(io.StringIO(data))
    pat = re.compile(r'[+-]?[0-9]+')
    totals = {}
    first = True
    for row in reader:
        if first:
            first = False
            continue
        if not row:
            continue
        if len(row) != 2:
            continue
        cust, cents = row
        if cust.strip() == "":
            continue
        c = cents.strip()
        if not pat.fullmatch(c):
            continue
        v = int(c)
        totals[cust] = totals.get(cust, 0) + v
    return totals

Response SHA-256: 08e120449e8858ecc8fc92dd1424b7a277a14f26b17712cd92d2702dfa6bab23

coding-rolling · repeat 3 · Fail

execution_rejected · responded · 2026-10-05T05:50:57.008077+00:00 UTC

Request: req_011CfiZshCs1QU8U6TkUk47o. Estimated cost: US$0.006680. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {events:[[day,count],...], query_days:[integer,...]}. Return totals for each query day covering inclusive days q-6 through q. Events can be unsorted, repeated or negative-day; count is nonnegative. Query order must be preserved. Days, query days and counts are integers.

Retained output

The approach is to aggregate the counts per day, sort the distinct days, and build prefix sums. Each query is then answered with binary search over the sorted days, using a hand-written bisect since `bisect` is not an allowed import.

For each query q, the answer is prefix(upper) − prefix(lower), where `lo` is the first index with day >= q−6 and `hi` is the first index with day > q.

Implementation details:
- `data` is a dict with keys "events" and "query_days".
- Counts are integers, so sums stay exact.
- The input is not mutated.

```python
def solve(data):
    events = data.get("events", [])
    queries = data.get("query_days", [])
    agg = {}
    for e in events:
        d = e[0]
        c = e[1]
        agg[d] = agg.get(d, 0) + c
    days = sorted(agg.keys())
    pref = [0]
    for d in days:
        pref.append(pref[-1] + agg[d])

    def first_ge(x):
        lo, hi = 0, len(days)
        while lo < hi:
            m = (lo + hi) // 2
            if days[m] < x:
                lo = m + 1
            else:
                hi = m
        return lo

    def first_gt(x):
        lo, hi = 0, len(days)
        while lo < hi:
            m = (lo + hi) // 2
            if days[m] <= x:
                lo = m + 1
            else:
                hi = m
        return lo

    res = []
    for q in queries:
        a = first_ge(q - 6)
        b = first_gt(q)
        res.append(pref[b] - pref[a])
    return res
```

Response SHA-256: 49da951abe7129ce671aa4119c0c34ca2db1f0ee652a8c85ba50bd52bbb17c9f

coding-dedup · repeat 3 · Pass

checked · responded · 2026-10-05T05:53:09.357230+00:00 UTC

Request: req_011Cfia3cuvc21tKe29HA1PT. Estimated cost: US$0.002010. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a list of {id, version, value}. Keep the highest version for each id; on equal version keep the last occurrence. Return the retained objects sorted lexicographically by id. Do not mutate the input. IDs are strings, versions are integers, and values are arbitrary JSON.

Retained output

def solve(data):
    best = {}
    for item in data:
        k = item["id"]
        if k not in best or item["version"] >= best[k]["version"]:
            best[k] = item
    return [best[k] for k in sorted(best)]

Response SHA-256: 0284cd11e80dfe02491fc543c78095cf00532cf323dc17118ee82839dbad9955

coding-allocate · repeat 1 · Pass

checked · responded · 2026-10-05T05:45:02.576082+00:00 UTC

Request: req_011CfiZRjXXh4dDxVVDDHLoV. Estimated cost: US$0.003152. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {total:nonnegative integer,weights:[nonnegative integer,...]}. Allocate proportionally using largest remainders: floor each share, then give leftover cents to largest fractional remainders, ties to lower index. If weights empty return []; if all zero return zeros.

Retained output

import math

def solve(data):
    total = data["total"]
    weights = data["weights"]
    n = len(weights)
    if n == 0:
        return []
    s = sum(weights)
    if s == 0:
        return [0] * n
    base = []
    rems = []
    for w in weights:
        q, r = divmod(total * w, s)
        base.append(q)
        rems.append(r)
    left = total - sum(base)
    order = sorted(range(n), key=lambda i: (-rems[i], i))
    for k in range(left):
        base[order[k]] += 1
    return base

Response SHA-256: 9f55a0f9778156c0c813502eadcfb3f507186d154360a89b1569d78d5d1f15e2

coding-rolling · repeat 2 · Fail

execution_rejected · responded · 2026-10-05T05:46:49.855515+00:00 UTC

Request: req_011CfiZZUFzCE5zK8uoGQWmQ. Estimated cost: US$0.006380. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {events:[[day,count],...], query_days:[integer,...]}. Return totals for each query day covering inclusive days q-6 through q. Events can be unsorted, repeated or negative-day; count is nonnegative. Query order must be preserved. Days, query days and counts are integers.

Retained output

The approach is to aggregate the counts per day, sort the distinct days, and build prefix sums. Each query then needs two binary searches, since `bisect` is not available and I write them by hand.

For a query q, the total is the sum of counts over days in [q-6, q]. That equals prefix(upper) - prefix(lower), where upper is the number of days <= q and lower is the number of days < q-6.

The function receives a dict, so it reads `data["events"]` and `data["query_days"]`. The input is not mutated.

```python
import math

def solve(data):
    events = data.get("events", [])
    queries = data.get("query_days", [])
    agg = {}
    for e in events:
        d = e[0]
        c = e[1]
        agg[d] = agg.get(d, 0) + c
    days = sorted(agg.keys())
    prefix = [0]
    for d in days:
        prefix.append(prefix[-1] + agg[d])

    def count_le(x):
        # number of days <= x
        lo, hi = 0, len(days)
        while lo < hi:
            mid = (lo + hi) // 2
            if days[mid] <= x:
                lo = mid + 1
            else:
                hi = mid
        return lo

    res = []
    for q in queries:
        hi_i = count_le(q)
        lo_i = count_le(q - 7)
        res.append(prefix[hi_i] - prefix[lo_i])
    return res
```

Here `count_le(q - 7)` counts days <= q-7, which is the same as days < q-6 for integers.

Response SHA-256: ed28f164eddf257ab583b5520467c3cf8a8ba82b4c636ddfb5e944631004a507

coding-reconcile · repeat 1 · Pass

checked · responded · 2026-10-05T05:44:16.934856+00:00 UTC

Request: req_011CfiZNNbMmbGZk3HUUsHAL. Estimated cost: US$0.002902. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input has invoices and payments lists of {id, cents}. Sum amounts by id; payments subtract from invoices. Return a dict of nonzero outstanding amounts with dictionary iteration keys sorted lexicographically by id, including negative overpayments. IDs are strings. Empty lists are valid. Amounts in cents are integers.

Retained output

def solve(data):
    totals = {}
    for inv in data.get("invoices", []):
        k = inv["id"]
        totals[k] = totals.get(k, 0) + inv["cents"]
    for p in data.get("payments", []):
        k = p["id"]
        totals[k] = totals.get(k, 0) - p["cents"]
    result = {}
    for k in sorted(totals.keys()):
        if totals[k] != 0:
            result[k] = totals[k]
    return result

Response SHA-256: 6b2a0c42229780fb3b133909345fac6b0fc91a3e98417fa41748b151343c8189

coding-fifo · repeat 2 · Pass

checked · responded · 2026-10-05T05:49:26.852881+00:00 UTC

Request: req_011CfiZmCnPu63FeZ1xS3T2N. Estimated cost: US$0.003146. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {lots:[[quantity,unit_cents],...], sold:nonnegative integer}. Sell in lot order. Return {remaining_units,remaining_value_cents,unfilled_units}. All quantities/prices nonnegative; unfilled is sales beyond available inventory. Quantities and unit prices are integers.

Retained output

def solve(data):
    lots = data["lots"]
    sold = data["sold"]
    to_sell = sold
    remaining_units = 0
    remaining_value = 0
    for lot in lots:
        q = lot[0]
        p = lot[1]
        take = min(q, to_sell)
        to_sell -= take
        left = q - take
        remaining_units += left
        remaining_value += left * p
    return {
        "remaining_units": remaining_units,
        "remaining_value_cents": remaining_value,
        "unfilled_units": to_sell,
    }

Response SHA-256: 14240b9a5765c903a796223dc6a7d4648b0b069e3ba4068842e1fdb58922f88c

coding-slug · repeat 2 · Pass

checked · responded · 2026-10-05T05:47:30.703131+00:00 UTC

Request: req_011CfiZch4kK4pahsLSmJr5E. Estimated cost: US$0.002294. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a string. Apply Unicode NFKD normalization, drop combining marks, lowercase, retain only ASCII a-z and digits, replace each run of other characters with one hyphen, strip edge hyphens. Return the slug.

Retained output

import unicodedata
import re

def solve(data):
    s = unicodedata.normalize("NFKD", data)
    s = "".join(c for c in s if not unicodedata.combining(c))
    s = s.lower()
    s = re.sub(r"[^a-z0-9]+", "-", s)
    return s.strip("-")

Response SHA-256: f8d37b8c40cd934afb10cab148c51df4fc532ebf6ad82f03d4343d9a5038b23a

coding-rolling · repeat 1 · Fail

execution_rejected · responded · 2026-10-05T05:45:37.020045+00:00 UTC

Request: req_011CfiZU8cee5oPXVLbPTihz. Estimated cost: US$0.005970. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {events:[[day,count],...], query_days:[integer,...]}. Return totals for each query day covering inclusive days q-6 through q. Events can be unsorted, repeated or negative-day; count is nonnegative. Query order must be preserved. Days, query days and counts are integers.

Retained output

The approach is to aggregate the counts per day, sort the distinct days, and build prefix sums. Each query then needs two binary searches, because `bisect` is not an allowed import, so I wrote a small manual one.

For a query q, the answer is prefix[hi] - prefix[lo], where lo is the number of days less than q-6 and hi is the number of days less than or equal to q.

No input is mutated, and the output is a list of ints in query order. The input is a dict with keys "events" and "query_days"; I assume `data` is already a dict, not a JSON string.

def solve(data):
    events = data.get("events", [])
    queries = data.get("query_days", [])
    agg = {}
    for e in events:
        d = e[0]
        c = e[1]
        agg[d] = agg.get(d, 0) + c
    days = sorted(agg.keys())
    prefix = [0]
    for d in days:
        prefix.append(prefix[-1] + agg[d])

    def count_less(x):
        # number of days < x
        lo = 0
        hi = len(days)
        while lo < hi:
            mid = (lo + hi) // 2
            if days[mid] < x:
                lo = mid + 1
            else:
                hi = mid
        return lo

    res = []
    for q in queries:
        a = count_less(q - 6)
        b = count_less(q + 1)
        res.append(prefix[b] - prefix[a])
    return res

Response SHA-256: 3d5f5be1da4bfefc09758b96d284e3e887ff84c5be458e7bc4f8413dcf254b62

coding-reconcile · repeat 3 · Pass

checked · responded · 2026-10-05T05:52:04.772609+00:00 UTC

Request: req_011CfiZxrvtZBxy1MPHZeKan. Estimated cost: US$0.002862. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input has invoices and payments lists of {id, cents}. Sum amounts by id; payments subtract from invoices. Return a dict of nonzero outstanding amounts with dictionary iteration keys sorted lexicographically by id, including negative overpayments. IDs are strings. Empty lists are valid. Amounts in cents are integers.

Retained output

def solve(data):
    totals = {}
    for inv in data.get("invoices", []):
        k = inv["id"]
        totals[k] = totals.get(k, 0) + inv["cents"]
    for p in data.get("payments", []):
        k = p["id"]
        totals[k] = totals.get(k, 0) - p["cents"]
    result = {}
    for k in sorted(totals):
        if totals[k] != 0:
            result[k] = totals[k]
    return result

Response SHA-256: bd67c911d8125da4195792eb6c177847c456711e83540b9154281823f101731a

coding-allocate · repeat 2 · Pass

checked · responded · 2026-10-05T05:47:04.016993+00:00 UTC

Request: req_011CfiZagTVACnfe1S8fgxqA. Estimated cost: US$0.003152. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {total:nonnegative integer,weights:[nonnegative integer,...]}. Allocate proportionally using largest remainders: floor each share, then give leftover cents to largest fractional remainders, ties to lower index. If weights empty return []; if all zero return zeros.

Retained output

import math

def solve(data):
    total = data["total"]
    weights = data["weights"]
    n = len(weights)
    if n == 0:
        return []
    s = sum(weights)
    if s == 0:
        return [0] * n
    base = []
    rems = []
    for w in weights:
        q, r = divmod(total * w, s)
        base.append(q)
        rems.append(r)
    left = total - sum(base)
    order = sorted(range(n), key=lambda i: (-rems[i], i))
    for k in range(left):
        base[order[k]] += 1
    return base

Response SHA-256: 139d9dd7ef67fe53a35887212b0eb65b7d4bcfdb8f5ac611a8763a3cfa06df0a

coding-redact · repeat 3 · Pass

checked · responded · 2026-10-05T05:54:25.801161+00:00 UTC

Request: req_011Cfia9FTVfemqvfPsns8X5. Estimated cost: US$0.002618. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is arbitrary JSON. Recursively remove dictionary keys whose lowercase spelling equals password, token or secret. Preserve other values and list order; never mutate the original.

Retained output

import json

def solve(data):
    banned = {"password", "token", "secret"}

    def clean(x):
        if isinstance(x, dict):
            result = {}
            for k, v in x.items():
                if isinstance(k, str) and k.lower() in banned:
                    continue
                result[k] = clean(v)
            return result
        if isinstance(x, list):
            return [clean(i) for i in x]
        return x

    return clean(data)

Response SHA-256: 32b6b5e1e2d099a0797ed6c18b6cb9911b91fe960d2425bbbabf55a15029ace4

coding-intervals · repeat 3 · Pass

checked · responded · 2026-10-05T05:50:38.370679+00:00 UTC

Request: req_011CfiZrXgqai3uTig6gEmNH. Estimated cost: US$0.002488. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a list of [start,end] integer half-open intervals, with start<=end. Drop empty intervals; merge overlapping or touching intervals. Return sorted merged intervals without mutating input.

Retained output

def solve(data):
    items = []
    for iv in data:
        s, e = iv[0], iv[1]
        if s < e:
            items.append((s, e))
    items.sort()
    res = []
    for s, e in items:
        if res and s <= res[-1][1]:
            if e > res[-1][1]:
                res[-1][1] = e
        else:
            res.append([s, e])
    return res

Response SHA-256: 71fdb9906cda982118a5122180c00c76eb965e5d6d87818f518526050adfe53a

coding-fifo · repeat 1 · Pass

checked · responded · 2026-10-05T05:45:48.388557+00:00 UTC

Request: req_011CfiZV7dQRKgPsrFnThzFB. Estimated cost: US$0.003026. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {lots:[[quantity,unit_cents],...], sold:nonnegative integer}. Sell in lot order. Return {remaining_units,remaining_value_cents,unfilled_units}. All quantities/prices nonnegative; unfilled is sales beyond available inventory. Quantities and unit prices are integers.

Retained output

def solve(data):
    lots = data["lots"]
    sold = data["sold"]
    need = sold
    remaining_units = 0
    remaining_value = 0
    for lot in lots:
        q = lot[0]
        p = lot[1]
        take = min(q, need)
        need -= take
        left = q - take
        remaining_units += left
        remaining_value += left * p
    return {
        "remaining_units": remaining_units,
        "remaining_value_cents": remaining_value,
        "unfilled_units": need,
    }

Response SHA-256: 3658b2199ad43663ebba61e941fbd3203b25678f976440f98ba11d30ce5aaccd

coding-csv · repeat 3 · Pass

checked · responded · 2026-10-05T05:52:24.040676+00:00 UTC

Request: req_011CfiZzFpKogy8Zz9JxREK3. Estimated cost: US$0.003544. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is CSV text with header customer,cents, including quoted fields. Treat a customer containing only whitespace as blank. Trim surrounding whitespace from cents, then accept only an optional ASCII + or - followed by one or more ASCII digits 0-9. Ignore blank customers and invalid cents. Sum by customer and return a dictionary, including zero totals. Preserve customer spelling. CSV quoting is valid and the header is exactly customer,cents. Ignore rows missing either field or containing extra fields. Ignore empty lines. Whitespace means Python str.strip() whitespace. No dictionary key order is required.

Retained output

import csv
import io
import re

def solve(data):
    reader = csv.reader(io.StringIO(data))
    pat = re.compile(r'[+-]?[0-9]+')
    totals = {}
    first = True
    for row in reader:
        if first:
            first = False
            continue
        if not row:
            continue
        if len(row) != 2:
            continue
        cust, cents = row
        if cust.strip() == "":
            continue
        c = cents.strip()
        if not pat.fullmatch(c):
            continue
        v = int(c)
        totals[cust] = totals.get(cust, 0) + v
    return totals

Response SHA-256: 9b146b92cbf5756f7f6326a7d2190041e9ac5e69e2324b6a2c8bd286fc43a4c8

coding-slug · repeat 3 · Pass

checked · responded · 2026-10-05T05:53:40.086091+00:00 UTC

Request: req_011Cfia5okqPzZBwJvj3j7ak. Estimated cost: US$0.002854. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a string. Apply Unicode NFKD normalization, drop combining marks, lowercase, retain only ASCII a-z and digits, replace each run of other characters with one hyphen, strip edge hyphens. Return the slug.

Retained output

import unicodedata

def solve(data):
    s = unicodedata.normalize("NFKD", data)
    s = "".join(c for c in s if not unicodedata.combining(c))
    s = s.lower()
    out = []
    pending = False
    for c in s:
        if ("a" <= c <= "z") or ("0" <= c <= "9"):
            if pending and out:
                out.append("-")
            pending = False
            out.append(c)
        else:
            pending = True
    return "".join(out)

Response SHA-256: a43118a728bc790333f4cd8dba20ebf751c8b3cdadf465f1e57833094d29946b

coding-dependencies · repeat 2 · Pass

checked · responded · 2026-10-05T05:48:33.933623+00:00 UTC

Request: req_011CfiZhH7jnkzQfmkkmRz2k. Estimated cost: US$0.004270. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a dict mapping each named job to prerequisite names. Include names referenced only as prerequisites. Return the lexicographically smallest valid topological order, choosing the smallest ready name at every step. Return null for any cycle. Job and prerequisite names are strings; prerequisites are lists. Repeated names in a prerequisite list denote the same dependency. Referenced-only names have no prerequisites. A self-dependency is a cycle. Return Python None for a cycle.

Retained output

import heapq

def solve(data):
    nodes = set()
    for job, prereqs in data.items():
        nodes.add(job)
        for p in prereqs:
            nodes.add(p)
    indeg = {n: 0 for n in nodes}
    adj = {n: set() for n in nodes}
    for job, prereqs in data.items():
        for p in set(prereqs):
            adj[p].add(job)
            indeg[job] += 1
    heap = [n for n in nodes if indeg[n] == 0]
    heapq.heapify(heap)
    result = []
    while heap:
        n = heapq.heappop(heap)
        result.append(n)
        for m in adj[n]:
            indeg[m] -= 1
            if indeg[m] == 0:
                heapq.heappush(heap, m)
    if len(result) != len(nodes):
        return None
    return result

Response SHA-256: 852e58a77d9ad5d146883fe54027a7874be2a09138407554c87b4e99647062df

coding-dependencies · repeat 1 · Pass

checked · responded · 2026-10-05T05:44:26.687315+00:00 UTC

Request: req_011CfiZP3yx8MeaJCTLyUK7y. Estimated cost: US$0.004480. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is a dict mapping each named job to prerequisite names. Include names referenced only as prerequisites. Return the lexicographically smallest valid topological order, choosing the smallest ready name at every step. Return null for any cycle. Job and prerequisite names are strings; prerequisites are lists. Repeated names in a prerequisite list denote the same dependency. Referenced-only names have no prerequisites. A self-dependency is a cycle. Return Python None for a cycle.

Retained output

import heapq

def solve(data):
    nodes = set()
    adj = {}
    indeg = {}
    for job, prereqs in data.items():
        nodes.add(job)
        for p in prereqs:
            nodes.add(p)
    for n in nodes:
        adj[n] = set()
        indeg[n] = 0
    for job, prereqs in data.items():
        for p in set(prereqs):
            if job not in adj[p]:
                adj[p].add(job)
                indeg[job] += 1
    heap = [n for n in nodes if indeg[n] == 0]
    heapq.heapify(heap)
    result = []
    while heap:
        n = heapq.heappop(heap)
        result.append(n)
        for m in adj[n]:
            indeg[m] -= 1
            if indeg[m] == 0:
                heapq.heappush(heap, m)
    if len(result) != len(nodes):
        return None
    return result

Response SHA-256: ed3bc79e981701545a6d01f8f1d021ea726b2b0c62cc8cc2486f8b82de13af8c

coding-percentile · repeat 3 · Pass

checked · responded · 2026-10-05T05:52:34.384342+00:00 UTC

Request: req_011Cfia144vCZRbsnbkVARfE. Estimated cost: US$0.002278. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is {values:[finite numbers,...],p:number in [0,100]}. Return nearest-rank percentile: sorted values at 1-based rank max(1,ceil(p/100*n)). Return null for no values. Do not interpolate or mutate input.

Retained output

import math

def solve(data):
    values = data.get("values")
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = max(1, math.ceil(p / 100 * n))
    rank = min(rank, n)
    return s[rank - 1]

Response SHA-256: b905e0f1f41d08d26f41165e56ff55a83deed0285f60ee8d2a3c5eb866af77ab

coding-redact · repeat 2 · Pass

checked · responded · 2026-10-05T05:48:17.649408+00:00 UTC

Request: req_011CfiZg81XeGFXze6TrChoz. Estimated cost: US$0.002608. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports are restricted module facades: math (public members); json (loads, dumps); csv (reader, DictReader); io (StringIO); re (compile, match, search, fullmatch, findall, finditer, split, sub, escape, IGNORECASE, MULTILINE, DOTALL, ASCII); collections (deque, defaultdict, Counter); heapq (heappush, heappop, heapify); unicodedata (normalize, combining, category). Other module members are unavailable. Use functions and only these safe built-ins: abs, all, any, bool, bytes, dict, divmod, enumerate, filter, float, frozenset, int, isinstance, len, list, map, max, min, next, ord, chr, pow, range, reversed, round, set, sorted, str, sum, tuple, zip, Exception, ValueError, TypeError, KeyError, IndexError, StopIteration. Import listed modules before referencing them. No custom classes, private/dunder attributes, globals/nonlocals, with statements, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Do not mutate any input, including nested containers. Return JSON-serializable values; Python None represents JSON null. Numeric strings and booleans are not accepted as numeric answers. Integer results are compared exactly; floating results use absolute tolerance 0.000001 or relative tolerance 0.00000001. Inputs follow the declared schema; no unspecified input validation is required. Input is arbitrary JSON. Recursively remove dictionary keys whose lowercase spelling equals password, token or secret. Preserve other values and list order; never mutate the original.

Retained output

def solve(data):
    blocked = {"password", "token", "secret"}

    def clean(x):
        if isinstance(x, dict):
            result = {}
            for k, v in x.items():
                if isinstance(k, str) and k.lower() in blocked:
                    continue
                result[k] = clean(v)
            return result
        if isinstance(x, list):
            return [clean(i) for i in x]
        return x

    return clean(data)

Response SHA-256: 1848bdaf06af005b19a8eba78d6888fb908f88a042152c0b64c53e0a3bd5ea7b

tested-best-bank-v1

Separate measurement contract · 1 measured cohort · cec849a95203

0%25%50%75%100%2026-10-04 UTC
Each dot is one measured cohort. Bars summarize task/repeat variation; they do not estimate week-to-week noise from one cohort. No interpolation across missing weeks.
coding measurements and service behavior
Measured UTCPass rate95% bandAttemptsResponsesProvider failuresMedian latencyCapped / refusal flagsReceipts
2026-10-04 17:0183.3%58.3%–100.0%36 / 3636 / 3602.17 s0 / 0Original JSON
Correction
Measurement contract and limitations
Task-bank SHA-256
8ad4dea4fe0b53a67184c305f645a228a1a0d48425a7787bae5990c7e7fd023e
Protocol SHA-256
06e5a0f38a9ad3b58d5afad4822ef747debe2a458340a5e752ea6d016aaa7f52
Grader contract
62980813a06357fd89c914858db26855ffe2bd65a7e18f326d827fb6610e7e23
Model configuration
04e4af3ce275b597cf00f2c7dc53d1c4bd14f4df1016870506fb403d1da26a0e

One point is one cohort, not a week of daily tests.

Exact returned model identity was validated by the source runner; the public projection exposes the admitted ID and response hash.

Hidden fixtures and private transport responses remain with the source owner.

v1 uses the disclosed offline correction. Original grades remain in each affected receipt.

Inspect 36 retained attempts
coding-reconcile · repeat 2 · Pass

checked · responded · 2026-10-04T16:48:41.896001+00:00 UTC

Request: req_011CfhYE4nCigQVpj4NYuo38. Estimated cost: US$0.002238. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input has invoices and payments lists of {id, cents}. Sum amounts by id; payments subtract from invoices. Return a dict of nonzero outstanding amounts sorted by id, including negative overpayments. IDs are strings. Empty lists are valid.

Retained output

def solve(data):
    if isinstance(data, str):
        import json
        data = json.loads(data)
    totals = {}
    for item in (data.get("invoices") or []):
        k = str(item["id"])
        totals[k] = totals.get(k, 0) + int(item["cents"])
    for item in (data.get("payments") or []):
        k = str(item["id"])
        totals[k] = totals.get(k, 0) - int(item["cents"])
    return {k: totals[k] for k in sorted(totals) if totals[k] != 0}

Response SHA-256: e871a73640a8494693d289bfb0ae767b327cb249f5e5344375a28643acd3ded1

coding-allocate · repeat 3 · Pass

checked · responded · 2026-10-04T17:00:45.083955+00:00 UTC

Request: req_011CfhZ9Mx3zk1Fzuu3Gu2sJ. Estimated cost: US$0.002510. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {total:nonnegative integer,weights:[nonnegative integer,...]}. Allocate proportionally using largest remainders: floor each share, then give leftover cents to largest fractional remainders, ties to lower index. If weights empty return []; if all zero return zeros.

Retained output

def solve(data):
    total = data.get("total", 0)
    weights = data.get("weights", [])
    if not weights:
        return []
    s = sum(weights)
    n = len(weights)
    if s == 0:
        return [0] * n
    base = []
    rems = []
    for i, w in enumerate(weights):
        q, r = divmod(total * w, s)
        base.append(q)
        rems.append((r, i))
    left = total - sum(base)
    order = sorted(range(n), key=lambda i: (-rems[i][0], i))
    for k in range(left):
        base[order[k]] += 1
    return base

Response SHA-256: efaab4cd7d92fe4b0694dc5e54e671d6c72980c046c7b0ac32a87e20e8dfda0c

coding-percentile · repeat 2 · Fail

execution_rejected · responded · 2026-10-04T16:47:42.498463+00:00 UTC

Request: req_011CfhY9eHCvmNM4bkwQELLC. Estimated cost: US$0.003286. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {values:[finite numbers,...],p:number in [0,100]}. Return nearest-rank percentile: sorted values at 1-based rank max(1,ceil(p/100*n)). Return null for no values. Do not interpolate or mutate input.

Retained output

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = math.ceil(p / 100 * n)
    if rank < 1:
        rank = 1
    if rank > n:
        rank = n
    return s[rank - 1]

Wait, the math module must be imported. Here is the complete code:

import math

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = math.ceil(p / 100 * n)
    if rank < 1:
        rank = 1
    if rank > n:
        rank = n
    return s[rank - 1]

Response SHA-256: be7a926a487da484c51946b5997f8a8d709b9f6730dde4bb43bf230491f2de9f

coding-slug · repeat 3 · Pass

checked · responded · 2026-10-04T17:00:11.721969+00:00 UTC

Request: req_011CfhZ6uF9fsoCwgTFxBzEk. Estimated cost: US$0.002142. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a string. Apply Unicode NFKD normalization, drop combining marks, lowercase, retain only ASCII a-z and digits, replace each run of other characters with one hyphen, strip edge hyphens. Return the slug.

Retained output

import unicodedata

def solve(data):
    s = unicodedata.normalize("NFKD", data)
    s = "".join(ch for ch in s if not unicodedata.combining(ch))
    s = s.lower()
    out = []
    pending = False
    for ch in s:
        if ("a" <= ch <= "z") or ("0" <= ch <= "9"):
            if pending and out:
                out.append("-")
            pending = False
            out.append(ch)
        else:
            pending = True
    return "".join(out)

Response SHA-256: 6f5dfe205d317fcc6fc5762a0188bb1a29b993b37a0ab8c19e1aac4357844c8a

coding-redact · repeat 3 · Pass

checked · responded · 2026-10-04T17:01:11.203235+00:00 UTC

Request: req_011CfhZBHpou9yUBENnxL4Mv. Estimated cost: US$0.002326. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is arbitrary JSON. Recursively remove dictionary keys whose lowercase spelling equals password, token or secret. Preserve other values and list order; never mutate the original.

Retained output

import math, json, csv, io, re, collections, heapq, unicodedata

def solve(data):
    banned = ("password", "token", "secret")

    def clean(x):
        if isinstance(x, dict):
            out = {}
            for k, v in x.items():
                if isinstance(k, str) and k.lower() in banned:
                    continue
                out[k] = clean(v)
            return out
        if isinstance(x, list):
            return [clean(i) for i in x]
        if isinstance(x, tuple):
            return [clean(i) for i in x]
        return x

    return clean(data)

Response SHA-256: 90215ada29a7d38fc8f78e4e2f9dca0a637b948e7cc3a8e3de8df705166383a3

coding-csv · repeat 3 · Pass

checked · responded · 2026-10-04T16:58:52.224876+00:00 UTC

Request: req_011CfhZ118Br3s7eMpuPLTJU. Estimated cost: US$0.003288. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is CSV text with header customer,cents, including quoted fields. Ignore rows with a blank customer or cents that is not a signed base-10 integer. Sum by customer and return a dictionary, including zero totals. Preserve customer spelling.

Retained output

import csv
import io
import re

def solve(data):
    result = {}
    reader = csv.reader(io.StringIO(data, newline=""))
    header = None
    for row in reader:
        if not row or all(not c.strip() for c in row):
            continue
        header = [c.strip().lower() for c in row]
        break
    if header is None:
        return result
    try:
        ci = header.index("customer")
        ai = header.index("cents")
    except ValueError:
        return result
    pat = re.compile(r"[+-]?[0-9]+")
    for row in reader:
        if len(row) <= max(ci, ai):
            continue
        name = row[ci]
        if not name.strip():
            continue
        s = row[ai].strip()
        if not pat.fullmatch(s):
            continue
        result[name] = result.get(name, 0) + int(s)
    return result

Response SHA-256: fa1b11a66ee95ff9ecb86c827606587a107be33e92a987da5d6ce7720905be8f

coding-reconcile · repeat 3 · Pass

checked · responded · 2026-10-04T16:58:17.593391+00:00 UTC

Request: req_011CfhYxVJGDPQRRHgUswpYs. Estimated cost: US$0.002258. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input has invoices and payments lists of {id, cents}. Sum amounts by id; payments subtract from invoices. Return a dict of nonzero outstanding amounts sorted by id, including negative overpayments. IDs are strings. Empty lists are valid.

Retained output

def solve(data):
    if isinstance(data, str):
        import json
        data = json.loads(data)
    totals = {}
    for item in data.get("invoices", []) or []:
        k = str(item["id"])
        totals[k] = totals.get(k, 0) + int(item["cents"])
    for item in data.get("payments", []) or []:
        k = str(item["id"])
        totals[k] = totals.get(k, 0) - int(item["cents"])
    return {k: totals[k] for k in sorted(totals) if totals[k] != 0}

Response SHA-256: a41921995cf9cbdc72bb2536f70cba9c17ddd25e1c92268ee6b004b032fcb4d4

coding-csv · repeat 2 · Pass

checked · responded · 2026-10-04T16:48:53.563878+00:00 UTC

Request: req_011CfhYErUpG65ZvzoNGM8CF. Estimated cost: US$0.003718. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is CSV text with header customer,cents, including quoted fields. Ignore rows with a blank customer or cents that is not a signed base-10 integer. Sum by customer and return a dictionary, including zero totals. Preserve customer spelling.

Retained output

import csv
import io
import re


def solve(data):
    totals = {}
    reader = csv.reader(io.StringIO(data, newline=""))
    header = None
    ci = 0
    vi = 1
    pattern = re.compile(r"[+-]?[0-9]+")
    for row in reader:
        if header is None:
            if not row:
                continue
            header = [h.strip().lstrip("\ufeff").lower() for h in row]
            if "customer" in header and "cents" in header:
                ci = header.index("customer")
                vi = header.index("cents")
            else:
                ci = 0
                vi = 1
            continue
        if not row:
            continue
        if len(row) <= max(ci, vi):
            continue
        name = row[ci]
        val = row[vi].strip()
        if name.strip() == "":
            continue
        if not pattern.fullmatch(val):
            continue
        n = int(val)
        totals[name] = totals.get(name, 0) + n
    return totals

Response SHA-256: 62b8df23705dea1bd3d181f5b4cfcc562a05837ddb4934e254278aeeb618d69a

coding-slug · repeat 2 · Pass

checked · responded · 2026-10-04T16:47:04.312013+00:00 UTC

Request: req_011CfhY6tLxfzjQfnSGfN1uf. Estimated cost: US$0.001512. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a string. Apply Unicode NFKD normalization, drop combining marks, lowercase, retain only ASCII a-z and digits, replace each run of other characters with one hyphen, strip edge hyphens. Return the slug.

Retained output

import unicodedata
import re

def solve(data):
    s = unicodedata.normalize("NFKD", data)
    s = "".join(c for c in s if not unicodedata.combining(c))
    s = s.lower()
    s = re.sub(r"[^a-z0-9]+", "-", s)
    return s.strip("-")

Response SHA-256: 8bbb6f7ed93edc1d01423576fc9831a68165bb3ed3a1259ad9d9f05020f4295c

coding-percentile · repeat 3 · Fail

execution_rejected · responded · 2026-10-04T16:59:02.948119+00:00 UTC

Request: req_011CfhZ1oN3EvRrT6983RNoK. Estimated cost: US$0.003256. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {values:[finite numbers,...],p:number in [0,100]}. Return nearest-rank percentile: sorted values at 1-based rank max(1,ceil(p/100*n)). Return null for no values. Do not interpolate or mutate input.

Retained output

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = math.ceil(p / 100 * n)
    if rank < 1:
        rank = 1
    if rank > n:
        rank = n
    return s[rank - 1]

Wait, math must be imported; here is the complete version:

import math

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = math.ceil(p / 100 * n)
    if rank < 1:
        rank = 1
    if rank > n:
        rank = n
    return s[rank - 1]

Response SHA-256: 845b89d7a82dab67c5ac84cb721b9f97ab7aec3c097f10e4a52b4da020a2c201

coding-allocate · repeat 1 · Pass

checked · responded · 2026-10-04T16:44:35.563700+00:00 UTC

Request: req_011CfhXuty6idn8jAAAcoQ8q. Estimated cost: US$0.002470. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {total:nonnegative integer,weights:[nonnegative integer,...]}. Allocate proportionally using largest remainders: floor each share, then give leftover cents to largest fractional remainders, ties to lower index. If weights empty return []; if all zero return zeros.

Retained output

def solve(data):
    total = data.get("total", 0)
    weights = data.get("weights", [])
    if not weights:
        return []
    s = sum(weights)
    n = len(weights)
    if s == 0:
        return [0] * n
    base = []
    rems = []
    for i, w in enumerate(weights):
        q, r = divmod(total * w, s)
        base.append(q)
        rems.append(r)
    left = total - sum(base)
    order = sorted(range(n), key=lambda i: (-rems[i], i))
    for k in range(left):
        base[order[k]] += 1
    return base

Response SHA-256: 66ea7cdc8b1df575dfe04b0f56e79187a4b862f1c416ea032bf7d0e6bc0a5855

coding-fifo · repeat 2 · Pass

checked · responded · 2026-10-04T16:55:36.646568+00:00 UTC

Request: req_011CfhYkd5kMfboxYQRvQhut. Estimated cost: US$0.002498. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {lots:[[quantity,unit_cents],...], sold:nonnegative integer}. Sell in lot order. Return {remaining_units,remaining_value_cents,unfilled_units}. All quantities/prices nonnegative; unfilled is sales beyond available inventory.

Retained output

def solve(data):
    lots = data.get("lots", []) or []
    sold = data.get("sold", 0) or 0
    to_sell = sold
    remaining_units = 0
    remaining_value = 0
    for lot in lots:
        q = lot[0]
        p = lot[1]
        take = q if q < to_sell else to_sell
        to_sell -= take
        left = q - take
        remaining_units += left
        remaining_value += left * p
    return {
        "remaining_units": remaining_units,
        "remaining_value_cents": remaining_value,
        "unfilled_units": to_sell,
    }

Response SHA-256: e006f5cc04831f21c2d2a4a374181906a19da4715f95c633bc64f573a5f75df0

coding-rolling · repeat 2 · Fail

execution_rejected · responded · 2026-10-04T16:46:15.280522+00:00 UTC

Request: req_011CfhY3Ge2phGBR641v3rCq. Estimated cost: US$0.002614. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {events:[[day,count],...], query_days:[integer,...]}. Return totals for each query day covering inclusive days q-6 through q. Events can be unsorted, repeated or negative-day; count is nonnegative. Query order must be preserved.

Retained output

def solve(data):
    import bisect
    events = data.get("events", []) or []
    queries = data.get("query_days", []) or []
    agg = {}
    for e in events:
        d, c = e[0], e[1]
        agg[d] = agg.get(d, 0) + c
    days = sorted(agg)
    prefix = [0]
    for d in days:
        prefix.append(prefix[-1] + agg[d])
    res = []
    for q in queries:
        lo = bisect.bisect_left(days, q - 6)
        hi = bisect.bisect_right(days, q)
        res.append(prefix[hi] - prefix[lo])
    return res

Response SHA-256: d1240017075322d0a99f4097881c1ae933d828d7200a5409d73e34797b7207b0

coding-dedup · repeat 1 · Pass

checked · responded · 2026-10-04T16:41:18.726607+00:00 UTC

Request: req_011CfhXfQfNQ5hEYZUEzbFwC. Estimated cost: US$0.001548. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a list of {id, version, value}. Keep the highest version for each id; on equal version keep the last occurrence. Return the retained objects sorted lexicographically by id. Do not mutate the input.

Retained output

def solve(data):
    best = {}
    for item in data:
        key = item["id"]
        cur = best.get(key)
        if cur is None or item["version"] >= cur["version"]:
            best[key] = item
    result = []
    for key in sorted(best, key=lambda k: str(k)):
        result.append(dict(best[key]))
    return result

Response SHA-256: b93d44aba30b0bce085fc4aab6f8a5ba0a74f2c7612d974ed67b5c00523a7c89

coding-redact · repeat 2 · Pass

checked · responded · 2026-10-04T16:47:56.199924+00:00 UTC

Request: req_011CfhYAfQhNkqNT8ABNWhNo. Estimated cost: US$0.002946. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is arbitrary JSON. Recursively remove dictionary keys whose lowercase spelling equals password, token or secret. Preserve other values and list order; never mutate the original.

Retained output

import json

def solve(data):
    banned = {"password", "token", "secret"}

    def clean(v):
        if isinstance(v, dict):
            result = {}
            for k, val in v.items():
                if isinstance(k, str) and k.lower() in banned:
                    continue
                result[k] = clean(val)
            return result
        if isinstance(v, list):
            return [clean(x) for x in v]
        if isinstance(v, tuple):
            return tuple(clean(x) for x in v)
        return v

    if isinstance(data, str):
        try:
            parsed = json.loads(data)
        except (ValueError, TypeError):
            return data
        if isinstance(parsed, (dict, list)):
            return clean(parsed)
        return data
    return clean(data)

Response SHA-256: a5097fcda7775944bf0a4f1e9dfe8b64a6aa2058a9bd3a66720a1a07e9a509a4

coding-fifo · repeat 1 · Pass

checked · responded · 2026-10-04T16:45:23.156717+00:00 UTC

Request: req_011CfhXyQXBxqWMfnFfM37r1. Estimated cost: US$0.002498. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {lots:[[quantity,unit_cents],...], sold:nonnegative integer}. Sell in lot order. Return {remaining_units,remaining_value_cents,unfilled_units}. All quantities/prices nonnegative; unfilled is sales beyond available inventory.

Retained output

def solve(data):
    lots = data.get("lots", []) or []
    sold = data.get("sold", 0) or 0
    to_sell = sold
    remaining_units = 0
    remaining_value = 0
    for lot in lots:
        q = lot[0]
        p = lot[1]
        take = q if q < to_sell else to_sell
        to_sell -= take
        left = q - take
        remaining_units += left
        remaining_value += left * p
    return {
        "remaining_units": remaining_units,
        "remaining_value_cents": remaining_value,
        "unfilled_units": to_sell,
    }

Response SHA-256: efcb8b2797f572372602aa2f07bf9baa594d6cde25c427bee504b1c4c6238f0b

coding-redact · repeat 1 · Pass

checked · responded · 2026-10-04T16:42:19.400750+00:00 UTC

Request: req_011CfhXjsUn6ZFr9KoCFw4Ym. Estimated cost: US$0.002116. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is arbitrary JSON. Recursively remove dictionary keys whose lowercase spelling equals password, token or secret. Preserve other values and list order; never mutate the original.

Retained output

import json

def solve(data):
    banned = {"password", "token", "secret"}

    def clean(x):
        if isinstance(x, dict):
            result = {}
            for k, v in x.items():
                if isinstance(k, str) and k.lower() in banned:
                    continue
                result[k] = clean(v)
            return result
        if isinstance(x, list):
            return [clean(i) for i in x]
        if isinstance(x, tuple):
            return [clean(i) for i in x]
        return x

    return clean(data)

Response SHA-256: 60bd509a5033e36522caf239eac0ba898e6e5e8011cd631482333705cdb58db7

coding-intervals · repeat 1 · Pass

checked · responded · 2026-10-04T16:44:56.141134+00:00 UTC

Request: req_011CfhXwQcM1bUNzzsBVhFbb. Estimated cost: US$0.002296. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a list of [start,end] integer half-open intervals, with start<=end. Drop empty intervals; merge overlapping or touching intervals. Return sorted merged intervals without mutating input.

Retained output

def solve(data):
    # Keep only non-empty intervals, as fresh (start, end) pairs, so the input is never modified.
    items = []
    for iv in data:
        s, e = iv[0], iv[1]
        if s < e:
            items.append((s, e))
    items.sort()
    result = []
    for s, e in items:
        # Merge when the new interval overlaps or touches the previous one.
        if result and s <= result[-1][1]:
            if e > result[-1][1]:
                result[-1][1] = e
        else:
            result.append([s, e])
    return result

Response SHA-256: eda9bc46aac0a5d3b279afe6c93a6f8926cc4bf6a09c9edd13073993659a0550

coding-allocate · repeat 2 · Pass

checked · responded · 2026-10-04T16:46:31.487295+00:00 UTC

Request: req_011CfhY4SSfag8GRwhQurY4w. Estimated cost: US$0.002550. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {total:nonnegative integer,weights:[nonnegative integer,...]}. Allocate proportionally using largest remainders: floor each share, then give leftover cents to largest fractional remainders, ties to lower index. If weights empty return []; if all zero return zeros.

Retained output

def solve(data):
    total = data.get("total", 0)
    weights = data.get("weights", [])
    if not weights:
        return []
    s = sum(weights)
    n = len(weights)
    if s == 0:
        return [0] * n
    base = []
    rems = []
    for i, w in enumerate(weights):
        num = total * w
        q, r = divmod(num, s)
        base.append(q)
        rems.append((r, i))
    left = total - sum(base)
    order = sorted(range(n), key=lambda i: (-rems[i][0], i))
    for i in order[:left]:
        base[i] += 1
    return base

Response SHA-256: d423cd9a061490230657b8fce6d45b23a15cc082d058fe4a76ff22e477df279e

coding-slug · repeat 1 · Pass

checked · responded · 2026-10-04T16:44:46.332600+00:00 UTC

Request: req_011CfhXvgoQ52tyjXTHC8E2J. Estimated cost: US$0.002142. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a string. Apply Unicode NFKD normalization, drop combining marks, lowercase, retain only ASCII a-z and digits, replace each run of other characters with one hyphen, strip edge hyphens. Return the slug.

Retained output

import unicodedata

def solve(data):
    s = unicodedata.normalize("NFKD", data)
    s = "".join(ch for ch in s if not unicodedata.combining(ch))
    s = s.lower()
    out = []
    pending = False
    for ch in s:
        if ("a" <= ch <= "z") or ("0" <= ch <= "9"):
            if pending and out:
                out.append("-")
            pending = False
            out.append(ch)
        else:
            pending = True
    return "".join(out)

Response SHA-256: fe96a3b60df163df6ca4bfbb250223a2ca0dbde1cefa674d42e836c7303c4b7b

coding-reconcile · repeat 1 · Pass

checked · responded · 2026-10-04T16:43:43.410936+00:00 UTC

Request: req_011CfhXr3xUnByL6FYWd6wYq. Estimated cost: US$0.002238. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input has invoices and payments lists of {id, cents}. Sum amounts by id; payments subtract from invoices. Return a dict of nonzero outstanding amounts sorted by id, including negative overpayments. IDs are strings. Empty lists are valid.

Retained output

def solve(data):
    if isinstance(data, str):
        import json
        data = json.loads(data)
    totals = {}
    for item in (data.get("invoices") or []):
        k = str(item["id"])
        totals[k] = totals.get(k, 0) + int(item["cents"])
    for item in (data.get("payments") or []):
        k = str(item["id"])
        totals[k] = totals.get(k, 0) - int(item["cents"])
    return {k: totals[k] for k in sorted(totals) if totals[k] != 0}

Response SHA-256: 0123937e41784fa1a7edf9fb7f467795d25ca67d66ad0c1a697560c3f020802d

coding-rate · repeat 2 · Pass

checked · responded · 2026-10-04T16:46:53.519815+00:00 UTC

Request: req_011CfhY64LCDiZwDeQK9dQzd. Estimated cost: US$0.002658. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {limit:positive integer,window:positive integer,events:[{user,time},...]}. Times are nondecreasing integer seconds. Process in input order. Accept only when fewer than limit previously accepted events for that user have times strictly greater than time-window. Rejections do not consume allowance. Return a list of booleans.

Retained output

def solve(data):
    from collections import deque
    limit = data["limit"]
    window = data["window"]
    events = data["events"]
    accepted = {}
    result = []
    for ev in events:
        user = ev["user"]
        t = ev["time"]
        dq = accepted.get(user)
        if dq is None:
            dq = deque()
            accepted[user] = dq
        # drop accepted times that are no longer strictly greater than t - window
        while dq and dq[0] <= t - window:
            dq.popleft()
        if len(dq) < limit:
            dq.append(t)
            result.append(True)
        else:
            result.append(False)
    return result

Response SHA-256: d36c36f3e6318ccca3519eb65a6dac73eaadeb1c2ca156df441365ce669784f0

coding-intervals · repeat 3 · Pass

checked · responded · 2026-10-04T16:56:53.405656+00:00 UTC

Request: req_011CfhYrK8fcdD19TppVU8wY. Estimated cost: US$0.001756. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a list of [start,end] integer half-open intervals, with start<=end. Drop empty intervals; merge overlapping or touching intervals. Return sorted merged intervals without mutating input.

Retained output

def solve(data):
    intervals = []
    for item in data:
        s, e = item[0], item[1]
        if s < e:
            intervals.append((s, e))
    intervals.sort()
    result = []
    for s, e in intervals:
        if result and s <= result[-1][1]:
            if e > result[-1][1]:
                result[-1][1] = e
        else:
            result.append([s, e])
    return result

Response SHA-256: 81105048b571652668e8e7620c99c7f34e4b48314b1e02e80fec168097eab0ab

coding-rolling · repeat 1 · Fail

execution_rejected · responded · 2026-10-04T16:45:10.519861+00:00 UTC

Request: req_011CfhXxS6R4mfdFeSmCeDhD. Estimated cost: US$0.004104. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {events:[[day,count],...], query_days:[integer,...]}. Return totals for each query day covering inclusive days q-6 through q. Events can be unsorted, repeated or negative-day; count is nonnegative. Query order must be preserved.

Retained output

import bisect is not allowed, so I'll implement the binary search by hand.

The approach is to aggregate counts by day, sort the distinct days, build prefix sums, and answer each query as the prefix sum over days up to q minus the prefix sum over days up to q-7.

```python
def solve(data):
    events = data.get("events", []) or []
    queries = data.get("query_days", []) or []

    agg = {}
    for e in events:
        d = e[0]
        c = e[1]
        agg[d] = agg.get(d, 0) + c

    days = sorted(agg.keys())
    prefix = [0]
    for d in days:
        prefix.append(prefix[-1] + agg[d])

    def upto(x):
        # number of days <= x
        lo, hi = 0, len(days)
        while lo < hi:
            mid = (lo + hi) // 2
            if days[mid] <= x:
                lo = mid + 1
            else:
                hi = mid
        return prefix[lo]

    res = []
    for q in queries:
        res.append(upto(q) - upto(q - 7))
    return res
```

Response SHA-256: 4315d3216c294e4299fa09c817bb48b77411eded2b7059187c58a60ca1775cc6

coding-percentile · repeat 1 · Fail

execution_rejected · responded · 2026-10-04T16:40:45.398731+00:00 UTC

Request: req_011CfhXctJhL4D61TCFDETpM. Estimated cost: US$0.003286. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {values:[finite numbers,...],p:number in [0,100]}. Return nearest-rank percentile: sorted values at 1-based rank max(1,ceil(p/100*n)). Return null for no values. Do not interpolate or mutate input.

Retained output

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = math.ceil(p / 100 * n)
    if rank < 1:
        rank = 1
    if rank > n:
        rank = n
    return s[rank - 1]

Wait: math must be imported. Here is the corrected final code:

import math

def solve(data):
    values = data.get("values") if isinstance(data, dict) else None
    if not values:
        return None
    p = data.get("p", 0)
    s = sorted(values)
    n = len(s)
    rank = math.ceil(p / 100 * n)
    if rank < 1:
        rank = 1
    if rank > n:
        rank = n
    return s[rank - 1]

Response SHA-256: 668242552649d784304ed6cc37e2e69665f419a2d4ad9b9ef30a3051f052f60c

coding-intervals · repeat 2 · Pass

checked · responded · 2026-10-04T16:48:31.901658+00:00 UTC

Request: req_011CfhYDLXEKwUpR5SinJh6D. Estimated cost: US$0.001756. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a list of [start,end] integer half-open intervals, with start<=end. Drop empty intervals; merge overlapping or touching intervals. Return sorted merged intervals without mutating input.

Retained output

def solve(data):
    intervals = []
    for item in data:
        s, e = item[0], item[1]
        if s < e:
            intervals.append((s, e))
    intervals.sort()
    result = []
    for s, e in intervals:
        if result and s <= result[-1][1]:
            if e > result[-1][1]:
                result[-1][1] = e
        else:
            result.append([s, e])
    return result

Response SHA-256: 2ec167120eb8d956f8aabf79863a93802a47f38e835a1bb37f0cbfb1899b0e54

coding-dedup · repeat 2 · Pass

checked · responded · 2026-10-04T16:56:09.194687+00:00 UTC

Request: req_011CfhYo43E31ThqvFr3qeMm. Estimated cost: US$0.001598. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a list of {id, version, value}. Keep the highest version for each id; on equal version keep the last occurrence. Return the retained objects sorted lexicographically by id. Do not mutate the input.

Retained output

def solve(data):
    best = {}
    for item in data:
        key = item["id"]
        cur = best.get(key)
        if cur is None or item["version"] >= cur["version"]:
            best[key] = item
    result = []
    for key in sorted(best, key=lambda k: str(k)):
        item = best[key]
        result.append(dict(item))
    return result

Response SHA-256: 56bec6dfd1375c66de52f78f12faf6f33d5ff7634e0e825f229ea7c9dc9a1b6e

coding-fifo · repeat 3 · Pass

checked · responded · 2026-10-04T16:56:43.255333+00:00 UTC

Request: req_011CfhYqXvpMVZ3zMejpYKgJ. Estimated cost: US$0.002498. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {lots:[[quantity,unit_cents],...], sold:nonnegative integer}. Sell in lot order. Return {remaining_units,remaining_value_cents,unfilled_units}. All quantities/prices nonnegative; unfilled is sales beyond available inventory.

Retained output

def solve(data):
    lots = data.get("lots", []) or []
    sold = data.get("sold", 0) or 0
    to_sell = sold
    remaining_units = 0
    remaining_value = 0
    for lot in lots:
        q = lot[0]
        p = lot[1]
        take = q if q < to_sell else to_sell
        to_sell -= take
        left = q - take
        remaining_units += left
        remaining_value += left * p
    return {
        "remaining_units": remaining_units,
        "remaining_value_cents": remaining_value,
        "unfilled_units": to_sell,
    }

Response SHA-256: 35ece2cd4c3d54b28f5d6d4234427e5d67c441b9ae0135da50a4949a8b17b3d6

coding-dependencies · repeat 1 · Pass · corrected

checked · responded · 2026-10-04T16:44:00.107635+00:00 UTC

Request: req_011CfhXsD3Tbip88EoptiajC. Estimated cost: US$0.004036. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a dict mapping each named job to prerequisite names. Include names referenced only as prerequisites. Return the lexicographically smallest valid topological order, choosing the smallest ready name at every step. Return null for any cycle.

Retained output

def solve(data):
    import heapq
    nodes = set()
    prereqs = {}
    for job, deps in data.items():
        nodes.add(job)
        if deps is None:
            deps = []
        elif isinstance(deps, (str, bytes)):
            deps = [deps]
        else:
            deps = list(deps)
        prereqs[job] = deps
        for d in deps:
            nodes.add(d)

    indeg = {n: 0 for n in nodes}
    children = {n: [] for n in nodes}
    for job, deps in prereqs.items():
        for d in set(deps):
            children[d].append(job)
            indeg[job] += 1

    heap = [n for n in nodes if indeg[n] == 0]
    heapq.heapify(heap)
    result = []
    while heap:
        n = heapq.heappop(heap)
        result.append(n)
        for c in children[n]:
            indeg[c] -= 1
            if indeg[c] == 0:
                heapq.heappush(heap, c)

    if len(result) != len(nodes):
        return None
    return result

Response SHA-256: 62329779c1217a565e8c2be581467a6edda13595515aea0a6ef481fcd8e472d6

coding-dedup · repeat 3 · Pass

checked · responded · 2026-10-04T16:59:36.744618+00:00 UTC

Request: req_011CfhZ4LxtNrkEiiBaEN2sL. Estimated cost: US$0.001598. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a list of {id, version, value}. Keep the highest version for each id; on equal version keep the last occurrence. Return the retained objects sorted lexicographically by id. Do not mutate the input.

Retained output

def solve(data):
    best = {}
    for item in data:
        key = item["id"]
        cur = best.get(key)
        if cur is None or item["version"] >= cur["version"]:
            best[key] = item
    result = []
    for key in sorted(best, key=lambda k: str(k)):
        item = best[key]
        result.append(dict(item))
    return result

Response SHA-256: 947b1af5267398e5f3dced73cb0b815520cd31f1be2da0406b0d0de14f33522c

coding-rate · repeat 1 · Pass

checked · responded · 2026-10-04T16:42:31.412714+00:00 UTC

Request: req_011CfhXkjCj7bvX14TGyGhFZ. Estimated cost: US$0.002698. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {limit:positive integer,window:positive integer,events:[{user,time},...]}. Times are nondecreasing integer seconds. Process in input order. Accept only when fewer than limit previously accepted events for that user have times strictly greater than time-window. Rejections do not consume allowance. Return a list of booleans.

Retained output

def solve(data):
    from collections import deque

    limit = data["limit"]
    window = data["window"]
    events = data["events"]
    accepted = {}
    result = []
    for ev in events:
        user = ev["user"]
        t = ev["time"]
        dq = accepted.get(user)
        if dq is None:
            dq = deque()
            accepted[user] = dq
        # drop accepted events with time <= t - window
        cutoff = t - window
        while dq and dq[0] <= cutoff:
            dq.popleft()
        if len(dq) < limit:
            dq.append(t)
            result.append(True)
        else:
            result.append(False)
    return result

Response SHA-256: cef45443cf6a37ca7d2ed6215335536dd9b013aa10ea80fbb80f2bb07b2d7adc

coding-rolling · repeat 3 · Fail

execution_rejected · responded · 2026-10-04T16:57:18.252234+00:00 UTC

Request: req_011CfhYsqoR6MapRGQFee4Sv. Estimated cost: US$0.002614. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {events:[[day,count],...], query_days:[integer,...]}. Return totals for each query day covering inclusive days q-6 through q. Events can be unsorted, repeated or negative-day; count is nonnegative. Query order must be preserved.

Retained output

def solve(data):
    import bisect
    events = data.get("events", []) or []
    queries = data.get("query_days", []) or []
    agg = {}
    for e in events:
        d, c = e[0], e[1]
        agg[d] = agg.get(d, 0) + c
    days = sorted(agg)
    prefix = [0]
    for d in days:
        prefix.append(prefix[-1] + agg[d])
    res = []
    for q in queries:
        lo = bisect.bisect_left(days, q - 6)
        hi = bisect.bisect_right(days, q)
        res.append(prefix[hi] - prefix[lo])
    return res

Response SHA-256: cb7fdb3436d3855358db3e18b2f5abca3bf598a1487c5edef63f1e2b1eb66ad8

coding-csv · repeat 1 · Pass

checked · responded · 2026-10-04T16:41:50.860803+00:00 UTC

Request: req_011CfhXhi5Bhgn74Buo79UqP. Estimated cost: US$0.003248. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is CSV text with header customer,cents, including quoted fields. Ignore rows with a blank customer or cents that is not a signed base-10 integer. Sum by customer and return a dictionary, including zero totals. Preserve customer spelling.

Retained output

import csv
import io
import re


def solve(data):
    result = {}
    reader = csv.reader(io.StringIO(data, newline=""))
    header = next(reader, None)
    if header is None:
        return result
    names = [h.strip().lower() for h in header]
    try:
        ci = names.index("customer")
        ai = names.index("cents")
    except ValueError:
        return result
    pattern = re.compile(r"[+-]?[0-9]+")
    for row in reader:
        if not row:
            continue
        if ci >= len(row) or ai >= len(row):
            continue
        customer = row[ci]
        if customer.strip() == "":
            continue
        raw = row[ai].strip()
        if not pattern.fullmatch(raw):
            continue
        result[customer] = result.get(customer, 0) + int(raw)
    return result

Response SHA-256: e478f72efd901bba4a440b9b2a099331ed323f92519567d4819308f1f8e2741d

coding-dependencies · repeat 3 · Pass · corrected

checked · responded · 2026-10-04T17:00:30.687704+00:00 UTC

Request: req_011CfhZ8DpNWTYv1iEcT8kH1. Estimated cost: US$0.004176. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a dict mapping each named job to prerequisite names. Include names referenced only as prerequisites. Return the lexicographically smallest valid topological order, choosing the smallest ready name at every step. Return null for any cycle.

Retained output

def solve(data):
    import heapq
    nodes = set()
    prereqs = {}
    for job, deps in data.items():
        nodes.add(job)
        if deps is None:
            deps = []
        elif isinstance(deps, (str, bytes)):
            deps = [deps]
        dl = list(deps)
        prereqs[job] = dl
        for d in dl:
            nodes.add(d)
    adj = {n: set() for n in nodes}
    indeg = {n: 0 for n in nodes}
    for job, dl in prereqs.items():
        for d in set(dl):
            if job in adj[d]:
                continue
            adj[d].add(job)
            indeg[job] += 1
    heap = [n for n in nodes if indeg[n] == 0]
    heapq.heapify(heap)
    result = []
    while heap:
        n = heapq.heappop(heap)
        result.append(n)
        for m in adj[n]:
            indeg[m] -= 1
            if indeg[m] == 0:
                heapq.heappush(heap, m)
    if len(result) != len(nodes):
        return None
    return result

Response SHA-256: 17d148ee088810f11245fa7213f8effb2c91cffc00ebd2497023b17cbeac4ddb

coding-dependencies · repeat 2 · Pass · corrected

checked · responded · 2026-10-04T16:48:15.455585+00:00 UTC

Request: req_011CfhYC3s5jd8vSTtM51akS. Estimated cost: US$0.004076. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is a dict mapping each named job to prerequisite names. Include names referenced only as prerequisites. Return the lexicographically smallest valid topological order, choosing the smallest ready name at every step. Return null for any cycle.

Retained output

def solve(data):
    import heapq
    nodes = set()
    prereqs = {}
    for job, pre in data.items():
        nodes.add(job)
        if pre is None:
            pre = []
        elif isinstance(pre, (str, bytes)):
            pre = [pre]
        else:
            pre = list(pre)
        prereqs[job] = set(pre)
        for p in pre:
            nodes.add(p)
    indeg = {n: 0 for n in nodes}
    adj = {n: [] for n in nodes}
    for job, pres in prereqs.items():
        for p in pres:
            adj[p].append(job)
            indeg[job] += 1
    heap = [n for n in nodes if indeg[n] == 0]
    heapq.heapify(heap)
    result = []
    while heap:
        n = heapq.heappop(heap)
        result.append(n)
        for m in adj[n]:
            indeg[m] -= 1
            if indeg[m] == 0:
                heapq.heappush(heap, m)
    if len(result) != len(nodes):
        return None
    return result

Response SHA-256: 89e114bf8315a5c74967c74f9015f87837d37647551a60e79c66e437137ad0fe

coding-rate · repeat 3 · Pass

checked · responded · 2026-10-04T16:59:55.009574+00:00 UTC

Request: req_011CfhZ5fqiXH1HWrMMqkmxY. Estimated cost: US$0.002538. Billed cost: unreconciled.

Exact prompt

Implement solve(data) in Python 3.9. Allowed imports: math, json, csv, io, re, collections, heapq, unicodedata. Use functions and built-in types; no custom classes, private/dunder attributes, globals/nonlocals, or async. Return only Python code, with no Markdown. Do not read files, use the network, run processes or access system state. Input is {limit:positive integer,window:positive integer,events:[{user,time},...]}. Times are nondecreasing integer seconds. Process in input order. Accept only when fewer than limit previously accepted events for that user have times strictly greater than time-window. Rejections do not consume allowance. Return a list of booleans.

Retained output

def solve(data):
    from collections import deque
    limit = data["limit"]
    window = data["window"]
    events = data["events"]
    accepted = {}
    result = []
    for ev in events:
        user = ev["user"]
        t = ev["time"]
        dq = accepted.get(user)
        if dq is None:
            dq = deque()
            accepted[user] = dq
        cutoff = t - window
        while dq and dq[0] <= cutoff:
            dq.popleft()
        if len(dq) < limit:
            dq.append(t)
            result.append(True)
        else:
            result.append(False)
    return result

Response SHA-256: 553e72eac488da5d6d2c80668336f2ce64816dc4dd8a4328ebb82a1e6d56b0ac

Math

Insufficient evidence

Two adjacent completed weeks need comparable cohorts. Missing weeks and changed contracts cannot establish a trend.

tested-best-bank-v2-reviewed

Separate measurement contract · 1 measured cohort · ec56633cf32c

0%25%50%75%100%2026-10-05 UTC
Each dot is one measured cohort. Bars summarize task/repeat variation; they do not estimate week-to-week noise from one cohort. No interpolation across missing weeks.
math measurements and service behavior
Measured UTCPass rate95% bandAttemptsResponsesProvider failuresMedian latencyCapped / refusal flagsReceipts
2026-10-05 05:545.6%0.0%–19.4%36 / 3636 / 3602.63 s0 / 0Original JSON
Measurement contract and limitations
Task-bank SHA-256
fce29b4d66cfddeab39632d451935271a37df595374b40eacd300201e3726291
Protocol SHA-256
90b114dd8a70ecbf3aecc35f58cea1ba85c786554aee9835a38a1c518293da05
Grader contract
62980813a06357fd89c914858db26855ffe2bd65a7e18f326d827fb6610e7e23
Model configuration
04e4af3ce275b597cf00f2c7dc53d1c4bd14f4df1016870506fb403d1da26a0e

One point is one cohort, not a week of daily tests.

Exact returned model identity was validated by the source runner; the public projection exposes the admitted ID and response hash.

Hidden fixtures and private transport responses remain with the source owner.

Inspect 36 retained attempts
math-npv · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:45:56.926909+00:00 UTC

Request: req_011CfiZVb9c9yT94VjUUhm31. Estimated cost: US$0.004306. Billed cost: unreconciled.

Exact prompt

Pay $1000 now, then receive $400 at each year end for three years. Use a 10% annual discount rate. Return net present value without rounding intermediate values. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: npv. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

NPV = -1000 + 400 × (1/1.1 + 1/1.21 + 1/1.331)

The annuity factor is (1 − 1.1^-3)/0.1. Since 1.1^3 = 1.331, 1/1.331 = 0.7513148009015778.

The annuity factor is (1 − 0.7513148009015778)/0.1 = 2.486851990984222.

Multiplying by 400 gives 994.7407963936888.

So NPV = -5.2592036063112.

Exact check: 1/1.331 = 1000/1331. The annuity factor is 10 × (1 − 1000/1331) = 10 × 331/1331 = 3310/1331. Then 400 × 3310/1331 = 1324000/1331 = 994.74079639369...

Division check: 1331 × 994 = 1,323,014. The remainder is 986, and 986/1331 = 0.74079639...
- 1331 × 0.74 = 984.94, remainder 1.06
- 1.06/1331 = 0.000796393688...

So 994.740796393688, and NPV = -5.259203606312.

{"npv": -5.259203606312}

Response SHA-256: a6849c3141d7dd615b56f3c75cfb1a6d6ce360d2581088b46cdb18ec07bcb2e0

math-variance · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:50:21.440600+00:00 UTC

Request: req_011CfiZqBNgaiLxKaQ13ZSdJ. Estimated cost: US$0.002916. Billed cost: unreconciled.

Exact prompt

For observations 4, 7, 7, 10, 12 calculate the arithmetic mean, unbiased sample variance (denominator n-1), and standard error of the mean. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: mean, sample_variance, standard_error. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Mean = (4+7+7+10+12)/5 = 40/5 = 8.

Deviations: -4, -1, -1, 2, 4. Squares: 16, 1, 1, 4, 16. Sum = 38.

Sample variance = 38/4 = 9.5.

Standard error = sqrt(9.5/5) = sqrt(1.9) ≈ 1.378404875209022.

Check: 1.3784² = 1.89998656; the remainder is 0.00001344, and dividing by 2·1.3784 gives 0.00000487, so the value is about 1.37840487. This agrees with the figure above.

{"mean": 8, "sample_variance": 9.5, "standard_error": 1.378404875209022}

Response SHA-256: c0e5de044b4dea41d9cf700764c760a4bb07aa39f4de630798d59403f5d5e911

math-loan · repeat 3 · Pass

correct · responded · 2026-10-05T05:51:47.026751+00:00 UTC

Request: req_011CfiZvmApDSMfZnBiytdnj. Estimated cost: US$0.014430. Billed cost: unreconciled.

Exact prompt

A $12000 loan charges a nominal annual rate of 12%, compounded monthly, repaid with 24 equal end-of-month payments. Calculate the monthly payment and total interest, without intermediate rounding. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: interest, payment. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

{"interest":1557.1600004,"payment":564.88166668}

Response SHA-256: abd43759b42262c1f09de953bdce39a2db2343ea210d75620aa5676f0ff4c7c1

math-mix · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:41:59.262595+00:00 UTC

Request: req_011CfiZCEAa4caUXseRHq3gF. Estimated cost: US$0.001638. Billed cost: unreconciled.

Exact prompt

Make exactly 80 litres of a 35% concentrate from 20% and 60% stocks, with additive volumes. How many litres of each stock are needed? Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: litres_20, litres_60. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Let x be litres of the 20% stock and y litres of the 60% stock.

x + y = 80 and 0.20x + 0.60y = 0.35 × 80 = 28.

Substituting x = 80 − y: 16 + 0.40y = 28, so y = 30 and x = 50.

{"litres_20": 50, "litres_60": 30}

Response SHA-256: 0c06cb2128f954a8dd41616321bbc59dab298852c491ef9752c5d506d1df3fb0

math-queue · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:47:56.650610+00:00 UTC

Request: req_011CfiZeWZnGBV6u5VvsFbEx. Estimated cost: US$0.002972. Billed cost: unreconciled.

Exact prompt

Each of three independent services succeeds with probability 0.98. A workflow requires all three. It retries the complete workflow once if the first attempt fails; attempts are independent. Calculate eventual success probability and expected number of complete attempts. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: expected_attempts, success_probability. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

p = 0.98^3 = 0.941192
q = 1 - p = 0.058808

Success probability with one retry: 1 - q^2 = p + q·p = 0.941192 + 0.058808·0.941192.
q^2 = 0.058808^2 = 0.003458380864 (check: 0.058808^2 = 0.0034583809 approx; exact: 58808^2 = 3,458,380,864, so q^2 = 3,458,380,864e-12 = 0.003458380864).
Success = 0.996541619136.

Expected number of complete attempts = 1 + q = 1.058808 (the second attempt happens only if the first fails).

{"expected_attempts": 1.058808, "success_probability": 0.996541619136}

Response SHA-256: 6ed789b79ab8d94a08986450212418c08035229d9771154679725b03c6e66fa1

math-bayes · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:49:43.352534+00:00 UTC

Request: req_011CfiZnKqq83qkG8DzD7MCe. Estimated cost: US$0.003806. Billed cost: unreconciled.

Exact prompt

A defect affects 2% of units. A detector flags 95% of defective units and 4% of nondefective units. Given a flag, calculate the probability the unit is defective, as a decimal from 0 to 1. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: probability. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

P(D|F) = 0.02*0.95 / (0.02*0.95 + 0.98*0.04) = 0.019 / (0.019 + 0.0392) = 0.019/0.0582 = 190/582 = 95/291.

Compute 95/291: 291*0.3 = 87.3, remainder 7.7 → 0.02646... Let's do long division.
95/291 = 0.326460481...
291*0.3 = 87.3; remainder 7.7
7.7/291 = 0.026460...
291*0.026 = 7.566; remainder 0.134
0.134/291 = 0.00046048...
291*0.00046 = 0.13386; remainder 0.00014
0.00014/291 = 4.8110e-7
Total: 0.3 + 0.026 + 0.00046 + 0.00000048110 = 0.3264604811

More digits: 0.00014/291 = 4.81099656e-7. So 0.326460481099656...

{"probability": 0.3264604810997}

Response SHA-256: 8d8ae29add57885926936503b6e3b25f0ba8e40449f292340737847cc6c58bf6

math-capacity · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:47:42.888385+00:00 UTC

Request: req_011CfiZdRhoqRJf6iemcKvdw. Estimated cost: US$0.004054. Billed cost: unreconciled.

Exact prompt

Product A uses 3 labour hours and 2 machine hours and earns $40 contribution. B uses 2 labour and 4 machine hours and earns $50. Weekly limits are 120 labour and 160 machine hours. Products must be whole units. Maximize contribution; if tied choose more A. Return A, B and contribution. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): a, b. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: a, b, contribution. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Maximize 40A + 50B subject to 3A + 2B ≤ 120, 2A + 4B ≤ 160, with A and B whole numbers.

Where the two constraints meet: from the second, A + 2B ≤ 80. Subtracting that from the first gives 2A ≤ 40 (since 3A + 2B − (A + 2B) = 2A ≤ 120 − 80), so A = 20 and B = 30. Contribution there is 800 + 1500 = 2300.

Check the other vertices:
- A = 40, B = 0 gives 1600.
- A = 0, B = 40 gives 2000.

The vertex (20, 30) is integer and best among the vertices, so it is optimal for the LP and therefore for the integer problem.

Check for ties: the objective ratio 40:50 is not parallel to either constraint (3:2 or 2:4 = 1:2). The objective 4:5 differs from both, so the optimum is unique.

{"a": 20, "b": 30, "contribution": 2300}

Response SHA-256: fbc9db6c58a97fa18f94bc5439b8d4a32079d70453e798ef6959bf6948e1c890

math-queue · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:54:16.476240+00:00 UTC

Request: req_011Cfia8SG6qn842ahgYL6HB. Estimated cost: US$0.004322. Billed cost: unreconciled.

Exact prompt

Each of three independent services succeeds with probability 0.98. A workflow requires all three. It retries the complete workflow once if the first attempt fails; attempts are independent. Calculate eventual success probability and expected number of complete attempts. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: expected_attempts, success_probability. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

p = 0.98^3 = 0.941192
q = 1 - p = 0.058808

Success probability with one retry: 1 - q^2.
q^2 = 0.058808^2 = 0.003458620864 (check: 0.058808^2 = 58808^2 × 10^-12; 58808^2 = 58808×58808 = 58808×58000 = 3,410,864,000; 58808×808 = 47,516,864; total 3,458,380,864. So q^2 = 0.003458380864.)

Recheck: 58808×58000 = 58808×58 ×1000 = 3,410,864×1000 = 3,410,864,000. Correct. 58808×808 = 58808×800 = 47,046,400, plus 58808×8 = 470,464, total 47,516,864. Sum = 3,458,380,864. So q^2 = 0.003458380864.

Success probability = 1 - 0.003458380864 = 0.996541619136.

Expected number of attempts = 1 + q = 1.058808 (the second attempt happens only if the first fails).

{"expected_attempts": 1.058808, "success_probability": 0.996541619136}

Response SHA-256: 8f22303cc1ffaeb56e257da12222028aa15625f93325796d941028e3b3c67e10

math-loan · repeat 2 · Fail

answer_mismatch · responded · 2026-10-05T05:46:14.941173+00:00 UTC

Request: req_011CfiZWX4aW57b1fZmSnuuC. Estimated cost: US$0.011400. Billed cost: unreconciled.

Exact prompt

A $12000 loan charges a nominal annual rate of 12%, compounded monthly, repaid with 24 equal end-of-month payments. Calculate the monthly payment and total interest, without intermediate rounding. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: interest, payment. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

{"interest":1557.1597885,"payment":564.88165786}

Response SHA-256: 67ae41f3ef2a7a74ac5860b536416ebd147841fc00058aacb66f81430f6132ae

math-bayes · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:41:49.793652+00:00 UTC

Request: req_011CfiZBPJj3TH5QYgikhUay. Estimated cost: US$0.004076. Billed cost: unreconciled.

Exact prompt

A defect affects 2% of units. A detector flags 95% of defective units and 4% of nondefective units. Given a flag, calculate the probability the unit is defective, as a decimal from 0 to 1. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: probability. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

P(D|F) = 0.02·0.95 / (0.02·0.95 + 0.98·0.04) = 0.019 / (0.019 + 0.0392) = 0.019/0.0582 = 190/582 = 95/291.

Compute 95/291: 291·0.326 = 94.866, remainder 0.134. 0.134/291 = 0.00046048...
So 0.32646048...

More digits: 95/291 long division.
950/291 = 3 (873), r77
770/291 = 2 (582), r188
1880/291 = 6 (1746), r134
1340/291 = 4 (1164), r176
1760/291 = 6 (1746), r14
140 → 0, r140
1400/291 = 4 (1164), r236
2360/291 = 8 (2328), r32
320/291 = 1, r29
290 → 0, r290
2900/291 = 9 (2619), r281
2810/291 = 9 (2619), r191
1910/291 = 6 (1746), r164

Digits: 0.3264604810996...

{"probability": 0.3264604810996}

Response SHA-256: 1ac23b25e7d5c2c72c7db00db9f91c0e84d8360b64a71771ffc8c5f3c6273915

math-weighted · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:51:54.595570+00:00 UTC

Request: req_011CfiZx6EK7hqoFkKAbtTds. Estimated cost: US$0.002166. Billed cost: unreconciled.

Exact prompt

Campaign A has 900 visits and 45 purchases. Campaign B has 100 visits and 20 purchases. Next week A has 100 visits and 8 purchases; B has 900 visits and 162 purchases. Return each week’s total conversion percentage and next-minus-first percentage-point change. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: change_points, week1_percent, week2_percent. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Week 1: total visits = 900 + 100 = 1000, total purchases = 45 + 20 = 65, so the conversion rate is 6.5%.

Week 2: total visits = 100 + 900 = 1000, total purchases = 8 + 162 = 170, so the conversion rate is 17%.

Change: 17 − 6.5 = 10.5 percentage points.

{"change_points": 10.5, "week1_percent": 6.5, "week2_percent": 17}

Response SHA-256: 3d0da5415eb23d9c81c478bf0eba741644b18e1d7f8cac6f63bc21bdd92ef8f1

math-capacity · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:51:16.264916+00:00 UTC

Request: req_011CfiZuBTkkjMzefL8Pwx96. Estimated cost: US$0.003794. Billed cost: unreconciled.

Exact prompt

Product A uses 3 labour hours and 2 machine hours and earns $40 contribution. B uses 2 labour and 4 machine hours and earns $50. Weekly limits are 120 labour and 160 machine hours. Products must be whole units. Maximize contribution; if tied choose more A. Return A, B and contribution. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): a, b. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: a, b, contribution. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Maximize 40A + 50B subject to 3A + 2B ≤ 120, 2A + 4B ≤ 160, with A and B whole numbers.

The LP vertex is where both constraints bind. From 3A + 2B = 120 and A + 2B = 80, subtracting gives 2A = 40, so A = 20 and B = 30. The contribution there is 800 + 1500 = 2300.

The other vertices are worse:
- (40, 0) gives 1600.
- (0, 40) gives 2000.

The vertex (20, 30) is integer, so it is the integer optimum. Check feasibility: labour is 60 + 60 = 120 and machine is 40 + 120 = 160, both within limits.

Ties: the objective 40A + 50B has slope ratio 4:5, while the constraint slopes are 3:2 and 1:2, so there are no ties along an edge.

{"a":20,"b":30,"contribution":2300}

Response SHA-256: 063caad13814312f18f1e4ffd90859058498f6ff4e4144bf6e569fcbac7a4127

math-discount · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:50:44.332725+00:00 UTC

Request: req_011CfiZrwhUGD9CG5Z3etjTk. Estimated cost: US$0.001606. Billed cost: unreconciled.

Exact prompt

An item is $250 before discounts and tax. Apply 20% off, then a further 15% off the discounted price, then 8% tax. Return the final price and effective pretax discount percentage. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: discount_percent, final_price. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Price after the first discount: 250 × 0.8 = 200.
Price after the second discount: 200 × 0.85 = 170.
Price after tax: 170 × 1.08 = 183.6.
Effective pretax discount: (250 − 170)/250 = 32%.

{"discount_percent": 32, "final_price": 183.6}

Response SHA-256: bd6226c14d9e0a9a02b2a9c63c7312973a8d2d7524d880bb32c6978cfda9b385

math-queue · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:44:46.953528+00:00 UTC

Request: req_011CfiZQTsAaeDmB2JFLWDiy. Estimated cost: US$0.004332. Billed cost: unreconciled.

Exact prompt

Each of three independent services succeeds with probability 0.98. A workflow requires all three. It retries the complete workflow once if the first attempt fails; attempts are independent. Calculate eventual success probability and expected number of complete attempts. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: expected_attempts, success_probability. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

p = 0.98^3 = 0.941192
q = 1 - p = 0.058808

Success probability with one retry: 1 - q^2.
q^2 = 0.058808^2 = 0.003458620864 (check: 0.058808^2 = 0.058808 × 0.058808. 58808^2 = 58808×58808. 58808×58000 = 3,410,864,000; 58808×808 = 47,516,864; total 3,458,380,864. Hmm, recompute: 58808×58000 = 58808×58×1000 = 3,410,864×1000 = 3,410,864,000. 58808×808 = 58808×800 = 47,046,400 plus 58808×8 = 470,464, giving 47,516,864. Sum = 3,458,380,864.)
So q^2 = 3,458,380,864 × 10^-12 = 0.003458380864.

Success probability = 1 - 0.003458380864 = 0.996541619136.

Expected number of attempts = 1 + q = 1.058808 (the second attempt happens only if the first fails).

{"expected_attempts": 1.058808, "success_probability": 0.996541619136}

Response SHA-256: b7b9c2f63b14f92d82d153e56c8e6f4833eaa3792470ba6dc8e669f51247510c

math-weighted · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:50:09.284391+00:00 UTC

Request: req_011CfiZpLsAMXNDcYB5d3fuU. Estimated cost: US$0.002186. Billed cost: unreconciled.

Exact prompt

Campaign A has 900 visits and 45 purchases. Campaign B has 100 visits and 20 purchases. Next week A has 100 visits and 8 purchases; B has 900 visits and 162 purchases. Return each week’s total conversion percentage and next-minus-first percentage-point change. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: change_points, week1_percent, week2_percent. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Week 1: total visits = 900 + 100 = 1000 and total purchases = 45 + 20 = 65, so the conversion rate is 6.5%.

Week 2: total visits = 100 + 900 = 1000 and total purchases = 8 + 162 = 170, so the conversion rate is 17%.

Change = 17 − 6.5 = 10.5 percentage points.

{"change_points": 10.5, "week1_percent": 6.5, "week2_percent": 17}

Response SHA-256: 99debd2bb3075a67e1f7f3d17e811c9fdfaebe2001f1c388ccf7ff2280e6c585

math-loan · repeat 1 · Pass

correct · responded · 2026-10-05T05:43:22.697677+00:00 UTC

Request: req_011CfiZHpt1w5P39mVHkpjV5. Estimated cost: US$0.010700. Billed cost: unreconciled.

Exact prompt

A $12000 loan charges a nominal annual rate of 12%, compounded monthly, repaid with 24 equal end-of-month payments. Calculate the monthly payment and total interest, without intermediate rounding. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: interest, payment. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

{"interest":1557.1600003,"payment":564.88166668}

Response SHA-256: 98f017fc48aadaf1ba00ff64ed8727bbaf727082d80f5498446ad7a040378bc1

math-margin · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:49:17.510620+00:00 UTC

Request: req_011CfiZkUE4jTYHV4KYLnss1. Estimated cost: US$0.003412. Billed cost: unreconciled.

Exact prompt

A shop buys 240 items at $18 each. It sells 210 at $30 and 30 at $24. Platform fees are 3% of revenue plus $0.20 per sold item. Shipping costs $2.50 per sold item. Calculate revenue, profit after these costs, and profit margin as a percentage of revenue. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: margin_percent, profit, revenue. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Revenue: 210×30 = 6300; 30×24 = 720; total 7020.

Cost of goods: 240×18 = 4320.

Platform fees: 3% of 7020 = 210.60; plus 0.20×240 sold items = 48 (all 240 are sold). Total 258.60.

Shipping: 2.50×240 = 600.

Profit: 7020 − 4320 − 258.60 − 600 = 1841.40.

Margin: 1841.40/7020 = 0.262307692307... → 26.2307692307...%

Check: 7020×0.2623 = 1841.346; the remainder is 0.054/7020 = 0.0000076923, so 0.2623076923 and the margin is 26.23076923076923%.

{"margin_percent": 26.230769230769, "profit": 1841.4, "revenue": 7020}

Response SHA-256: d82817736937403c7f57d1336aef2aac520f4cd531820d05f67d5aeb7ff27981

math-margin · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:52:45.111400+00:00 UTC

Request: req_011Cfia1mHQ6r2yUtxu2v8cH. Estimated cost: US$0.003542. Billed cost: unreconciled.

Exact prompt

A shop buys 240 items at $18 each. It sells 210 at $30 and 30 at $24. Platform fees are 3% of revenue plus $0.20 per sold item. Shipping costs $2.50 per sold item. Calculate revenue, profit after these costs, and profit margin as a percentage of revenue. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: margin_percent, profit, revenue. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Revenue: 210×30 = 6300; 30×24 = 720; total 7020.

Cost of goods: 240×18 = 4320.

Fees: 3% × 7020 = 210.6; per item 0.20×240 = 48 (sold items: 210+30 = 240, so all items are sold).

Shipping: 2.50×240 = 600.

Profit = 7020 − 4320 − 210.6 − 48 − 600 = 1841.4.

Margin = 1841.4/7020 × 100 = 26.230769230...% (1841.4/7020 = 0.26230769...; check: 7020×0.2623 = 1841.346, remainder 0.054/7020 = 0.0000076923, so 0.2623076923). Margin percent = 26.23076923076923.

{"margin_percent": 26.23076923076923, "profit": 1841.4, "revenue": 7020}

Response SHA-256: a73795fc8a5800e14211e4d4d6c7fb39327499c4b959869e5eb2cd15a79f42d2

math-discount · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:49:35.703126+00:00 UTC

Request: req_011CfiZmutwCsUZn3P43xtXn. Estimated cost: US$0.001296. Billed cost: unreconciled.

Exact prompt

An item is $250 before discounts and tax. Apply 20% off, then a further 15% off the discounted price, then 8% tax. Return the final price and effective pretax discount percentage. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: discount_percent, final_price. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

250 × 0.8 = 200; × 0.85 = 170; × 1.08 = 183.6.

Effective pretax discount: (250 − 170)/250 = 32%.

{"discount_percent": 32, "final_price": 183.6}

Response SHA-256: 08e2f61335dcebea8b6e04f0e44634fd3f1546e02d21539546e2b90c04d50ffb

math-capacity · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:43:37.952621+00:00 UTC

Request: req_011CfiZKS9b8NwysiAu6wYVv. Estimated cost: US$0.003214. Billed cost: unreconciled.

Exact prompt

Product A uses 3 labour hours and 2 machine hours and earns $40 contribution. B uses 2 labour and 4 machine hours and earns $50. Weekly limits are 120 labour and 160 machine hours. Products must be whole units. Maximize contribution; if tied choose more A. Return A, B and contribution. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): a, b. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: a, b, contribution. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Maximize 40A + 50B subject to 3A + 2B ≤ 120, 2A + 4B ≤ 160, with A and B whole numbers.

LP vertex: from 3A + 2B = 120 and A + 2B = 80, subtract to get 2A = 40, so A = 20 and B = 30. Contribution = 800 + 1500 = 2300.

Other vertices: A = 40, B = 0 gives 1600. A = 0, B = 40 gives 2000. So the LP optimum is at the integer point (20, 30) with value 2300.

Tie check: the objective ratio 40:50 differs from both constraint ratios (3:2 and 2:4), so the optimum is unique.

{"a": 20, "b": 30, "contribution": 2300}

Response SHA-256: 69c506430512cf2c0a65d1976a2e73544bf616af53ea354f8399fcd822c1a96a

math-mix · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:54:33.070212+00:00 UTC

Request: req_011Cfia9nMNJqAKU1wKx5322. Estimated cost: US$0.001938. Billed cost: unreconciled.

Exact prompt

Make exactly 80 litres of a 35% concentrate from 20% and 60% stocks, with additive volumes. How many litres of each stock are needed? Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: litres_20, litres_60. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Let x be the litres of the 20% stock and y the litres of the 60% stock.

Volume: x + y = 80.
Concentrate: 0.20x + 0.60y = 0.35 × 80 = 28.

Substitute x = 80 − y:
0.20(80 − y) + 0.60y = 28
16 + 0.40y = 28
y = 30, so x = 50.

{"litres_20": 50, "litres_60": 30}

Response SHA-256: 86433a1fabc271198626589c2373682742024d67bdf89bbb980f17540403bf04

math-weighted · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:42:24.676548+00:00 UTC

Request: req_011CfiZE6PpL7i38Na6mNoD4. Estimated cost: US$0.002126. Billed cost: unreconciled.

Exact prompt

Campaign A has 900 visits and 45 purchases. Campaign B has 100 visits and 20 purchases. Next week A has 100 visits and 8 purchases; B has 900 visits and 162 purchases. Return each week’s total conversion percentage and next-minus-first percentage-point change. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: change_points, week1_percent, week2_percent. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Week 1: total visits are 900 + 100 = 1000 and total purchases are 45 + 20 = 65, so conversion is 6.5%.

Week 2: total visits are 100 + 900 = 1000 and total purchases are 8 + 162 = 170, so conversion is 17%.

Change: 17 − 6.5 = 10.5 percentage points.

{"change_points": 10.5, "week1_percent": 6.5, "week2_percent": 17}

Response SHA-256: afb270b69120a8ce7b73b31e99fd9c100d08a766bba0e809c3b875b51d854dca

math-bayes · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:51:06.749120+00:00 UTC

Request: req_011CfiZtTc5CggBfqxBPMtKu. Estimated cost: US$0.004886. Billed cost: unreconciled.

Exact prompt

A defect affects 2% of units. A detector flags 95% of defective units and 4% of nondefective units. Given a flag, calculate the probability the unit is defective, as a decimal from 0 to 1. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: probability. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

P(defective | flag) = (0.02 × 0.95) / (0.02 × 0.95 + 0.98 × 0.04)

The numerator is 0.019 and the second term is 0.0392, so the denominator is 0.0582.

0.019 / 0.0582 = 190/582 = 95/291

Long division of 95/291:
- 950/291 = 3 remainder 77, giving digit 3
- 770/291 = 2 remainder 188, giving digit 2
- 1880/291 = 6 remainder 134 (1746), giving digit 6
- 1340/291 = 4 remainder 176 (1164), giving digit 4
- 1760/291 = 6 remainder 14 (1746), giving digit 6
- 140/291 = 0, giving digit 0
- 1400/291 = 4 remainder 236 (1164), giving digit 4
- 2360/291 = 8 remainder 32 (2328), giving digit 8
- 320/291 = 1 remainder 29, giving digit 1
- 290/291 = 0, giving digit 0
- 2900/291 = 9 remainder 281 (2619), giving digit 9
- 2810/291 = 9 remainder 191 (2619), giving digit 9

So 95/291 = 0.326460481099...

{"probability": 0.326460481099}

Response SHA-256: 22fb2cfabf84793fff93012a96109a2b4c82edd0b8fdbd6a53afa087a2ea153e

math-discount · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:42:18.703161+00:00 UTC

Request: req_011CfiZDgRuyo5uPKm7bLrtG. Estimated cost: US$0.001616. Billed cost: unreconciled.

Exact prompt

An item is $250 before discounts and tax. Apply 20% off, then a further 15% off the discounted price, then 8% tax. Return the final price and effective pretax discount percentage. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: discount_percent, final_price. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Price after 20% off: 250 × 0.8 = 200.
After a further 15% off: 200 × 0.85 = 170.
After 8% tax: 170 × 1.08 = 183.6.
Effective pretax discount: (250 − 170)/250 = 32%.

{"discount_percent": 32, "final_price": 183.6}

Response SHA-256: 61245a1be3bb336a4e34790eb3627d5be2b1ef79e3dd5ad21927c4d546041094

math-break-even · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:53:15.314283+00:00 UTC

Request: req_011Cfia43W2RVfjReksqt1qR. Estimated cost: US$0.001902. Billed cost: unreconciled.

Exact prompt

A product sells for $40. Variable costs are $17 production, $3 shipping, and a payment fee of 2.5% of sale price plus $0.30. Fixed monthly costs are $1870. Return the minimum whole units needed to break even and profit at that unit count. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): units. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: profit, units. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Contribution per unit = 40 − 17 − 3 − (0.025×40 + 0.30) = 40 − 17 − 3 − 1.00 − 0.30 = 18.70.

Break-even units = 1870 / 18.70 = 100 exactly.

Profit at 100 units = 100 × 18.70 − 1870 = 0.

{"profit": 0, "units": 100}

Response SHA-256: 65ff182276a3de3e867b21a5b9219cf464f7719e655a7e0060db67c49a9ff0c6

math-break-even · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:44:54.996764+00:00 UTC

Request: req_011CfiZRBaRM9hZq5GdVebQj. Estimated cost: US$0.002172. Billed cost: unreconciled.

Exact prompt

A product sells for $40. Variable costs are $17 production, $3 shipping, and a payment fee of 2.5% of sale price plus $0.30. Fixed monthly costs are $1870. Return the minimum whole units needed to break even and profit at that unit count. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): units. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: profit, units. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Price 40. Variable costs: 17 + 3 + 0.025·40 + 0.30 = 17 + 3 + 1 + 0.3 = 21.3.

Contribution per unit = 40 − 21.3 = 18.7.

Break-even units = 1870 / 18.7 = 100 exactly.

At 100 units: profit = 100 · 18.7 − 1870 = 1870 − 1870 = 0.

{"profit": 0, "units": 100}

Response SHA-256: 1f6d6c2fb9e595d1459235d4b2dcd624b5a5747e4b3b56e6642fda7e9624259a

math-mix · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:47:15.392835+00:00 UTC

Request: req_011CfiZbXkPmkEqzQGsm5uHJ. Estimated cost: US$0.001978. Billed cost: unreconciled.

Exact prompt

Make exactly 80 litres of a 35% concentrate from 20% and 60% stocks, with additive volumes. How many litres of each stock are needed? Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: litres_20, litres_60. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Let x be the litres of the 20% stock and y the litres of the 60% stock.

Volume: x + y = 80.
Concentrate: 0.20x + 0.60y = 0.35 × 80 = 28.

Substitute x = 80 − y: 0.20(80 − y) + 0.60y = 28, so 16 + 0.40y = 28, giving y = 30 and x = 50.

{"litres_20": 50, "litres_60": 30}

Response SHA-256: 8f8a3789a701f3f7aaaf6e954897fc5866e65b12934181cdce4479610519fe8c

math-margin · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:44:08.308467+00:00 UTC

Request: req_011CfiZMfYZbJBxf9ctDMucG. Estimated cost: US$0.003482. Billed cost: unreconciled.

Exact prompt

A shop buys 240 items at $18 each. It sells 210 at $30 and 30 at $24. Platform fees are 3% of revenue plus $0.20 per sold item. Shipping costs $2.50 per sold item. Calculate revenue, profit after these costs, and profit margin as a percentage of revenue. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: margin_percent, profit, revenue. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Revenue: 210×30 = 6300; 30×24 = 720; total 7020.

Cost of goods: 240×18 = 4320.

Fees: 3% of 7020 = 210.6; per item fee 0.20×240 sold items = 48 (all 240 are sold). Total fees = 258.6.

Shipping: 2.50×240 = 600.

Profit = 7020 − 4320 − 258.6 − 600 = 1841.4.

Margin = 1841.4/7020 = 0.262307692...×100 = 26.2307692307...%

Check: 7020×0.2623 = 1841.346; remainder 0.054/7020 = 0.00000769, so 0.26230769. Margin is 26.230769230769...% (repeating 230769).

{"margin_percent": 26.230769230769, "profit": 1841.4, "revenue": 7020}

Response SHA-256: 06fe67254284bbc4e1d5703f21992d5940a201e4eb4cf3310e62b7c2d1a507bc

math-allocation · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:54:39.327428+00:00 UTC

Request: req_011CfiaAEmrPXoXTi8hctXoJ. Estimated cost: US$0.001926. Billed cost: unreconciled.

Exact prompt

Allocate exactly $10.00 to three departments with weights 1, 1, 1. Work in cents: floor shares, then allocate remaining cents by descending fractional remainder, ties to lower index. Return integer cents for departments A, B and C. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): a_cents, b_cents, c_cents. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: a_cents, b_cents, c_cents. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

$10.00 is 1000 cents. Each department's exact share is 1000/3 = 333.333... cents, so each floor is 333 and the three floors total 999. One cent remains.

All three fractional remainders are equal (0.333...), so the tie goes to the lowest index. Department A gets the extra cent.

{"a_cents": 334, "b_cents": 333, "c_cents": 333}

Response SHA-256: 7bb18a2b6917601de9c6e06b8ec87b4b186e754a013bb63b63162bbfe9a3f302

math-allocation · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:48:26.185116+00:00 UTC

Request: req_011CfiZgkAu7iAbW8ZUq5udS. Estimated cost: US$0.001996. Billed cost: unreconciled.

Exact prompt

Allocate exactly $10.00 to three departments with weights 1, 1, 1. Work in cents: floor shares, then allocate remaining cents by descending fractional remainder, ties to lower index. Return integer cents for departments A, B and C. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): a_cents, b_cents, c_cents. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: a_cents, b_cents, c_cents. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

$10.00 is 1000 cents. Each department's exact share is 1000/3 = 333.33... cents, so the floor is 333 each.

The floors sum to 999, leaving 1 cent. All three fractional remainders are equal, so the tie goes to the lowest index, which is A. A gets 334 and B and C get 333.

{"a_cents": 334, "b_cents": 333, "c_cents": 333}

Response SHA-256: de623d482b951caa40a6293f4c0b00247c6207da2d82519f4ff9a6f787bbf558

math-npv · repeat 3 · Fail

invalid_artifact · responded · 2026-10-05T05:52:59.707604+00:00 UTC

Request: req_011Cfia2cSrmEheReZwwXjnG. Estimated cost: US$0.007276. Billed cost: unreconciled.

Exact prompt

Pay $1000 now, then receive $400 at each year end for three years. Use a 10% annual discount rate. Return net present value without rounding intermediate values. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: npv. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

NPV = -1000 + 400 × (1/1.1 + 1/1.21 + 1/1.331)

The annuity factor is 1/1.1 + 1/1.21 + 1/1.331 = (1.21×1.1 + 1.1×1.1 ... ) computed over the common denominator 1.331:
- 1/1.1 = 1.21/1.331
- 1/1.21 = 1.1/1.331
- 1/1.331 = 1/1.331

The sum is 3.31/1.331 = 2.486851990984222...

Check: 1.331 × 2.486851991 = 3.31000000. Good.

Multiplying by 400 gives 994.7407963936889, since 3.31 × 400 = 1324 and 1324/1.331 = 994.74079639368...

Long division of 1324/1.331 (that is, 1324000/1331):
- 1331 × 994 = 1,323,014, remainder 986.
- 9860/1331 = 7 (9317), remainder 543.
- 5430/1331 = 4 (5324), remainder 106.
- 1060/1331 = 0, remainder 1060.
- 10600/1331 = 7 (9317), remainder 1283.
- 12830/1331 = 9 (11979), remainder 851.
- 8510/1331 = 6 (7986), remainder 524.
- 5240/1331 = 3 (3993), remainder 1247.
- 12470/1331 = 9 (11979), remainder 491.
- 4910/1331 = 3 (3993), remainder 917.
- 9170/1331 = 6 (7986), remainder 1184.
- 11840/1331 = 8 (10648), remainder 1192.

This gives 994.74079639368..., so NPV = -5.259203606311...

Subtracting 1000 from 994.74079639368 gives -5.259203606320, using digits 994.740796393680. The digits so far are 994.74079639368, so NPV = -5.25920360632 (approximately).

```json
{"npv": -5.25920360632}
```

Response SHA-256: a6bbfd608b7e9da752b071724f9b708821ccf9912ad8ac78f989932a566ee4b3

math-variance · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:49:53.563474+00:00 UTC

Request: req_011CfiZo9ynZ3nRqYU91gC5x. Estimated cost: US$0.002526. Billed cost: unreconciled.

Exact prompt

For observations 4, 7, 7, 10, 12 calculate the arithmetic mean, unbiased sample variance (denominator n-1), and standard error of the mean. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: mean, sample_variance, standard_error. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Mean = (4+7+7+10+12)/5 = 40/5 = 8.

The squared deviations from the mean are 16, 1, 1, 4, 16, which sum to 38.

Sample variance = 38/4 = 9.5.

Standard error = sqrt(9.5/5) = sqrt(1.9) ≈ 1.378404875209022.

Check: 1.3784² = 1.89998..., which is consistent with sqrt(1.9). The more precise value is 1.37840487520902.

{"mean": 8, "sample_variance": 9.5, "standard_error": 1.378404875209022}

Response SHA-256: c42497e968b3ac7118c2868416d3713626ff3c4fe3a25fc677f0bd3ab8b1205d

math-variance · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:44:37.908064+00:00 UTC

Request: req_011CfiZPtwmMuZAfS25pYCkk. Estimated cost: US$0.002576. Billed cost: unreconciled.

Exact prompt

For observations 4, 7, 7, 10, 12 calculate the arithmetic mean, unbiased sample variance (denominator n-1), and standard error of the mean. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: mean, sample_variance, standard_error. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Mean = (4+7+7+10+12)/5 = 40/5 = 8.

Deviations: -4, -1, -1, 2, 4. Squares: 16, 1, 1, 4, 16, sum = 38.

Sample variance = 38/4 = 9.5.

Standard error = sqrt(9.5/5) = sqrt(1.9) ≈ 1.378404875209022.

Check: 1.3784^2 = 1.89998... and 1.378404875^2 ≈ 1.9. Good.

{"mean": 8, "sample_variance": 9.5, "standard_error": 1.378404875209022}

Response SHA-256: f68cff406f4dd427e63be9162ccabcb16cde9ef9636ca3580f15b5fd4fd6967a

math-break-even · repeat 2 · Fail

invalid_artifact · responded · 2026-10-05T05:47:50.179597+00:00 UTC

Request: req_011CfiZe7PWHBTMxjCaHyMyC. Estimated cost: US$0.001862. Billed cost: unreconciled.

Exact prompt

A product sells for $40. Variable costs are $17 production, $3 shipping, and a payment fee of 2.5% of sale price plus $0.30. Fixed monthly costs are $1870. Return the minimum whole units needed to break even and profit at that unit count. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): units. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: profit, units. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

Contribution per unit = 40 - 17 - 3 - (0.025×40 + 0.30) = 40 - 20 - 1.00 - 0.30 = 18.70.

Break-even units = 1870 / 18.7 = 100 exactly.

Profit at 100 units = 100 × 18.7 - 1870 = 0.

{"profit": 0, "units": 100}

Response SHA-256: 5682f9e81848e348e213f4ebdec9519378ad772ef0651778cef6d6379d199fd6

math-npv · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:43:58.005836+00:00 UTC

Request: req_011CfiZLme92m8rCaoKtAXbN. Estimated cost: US$0.005116. Billed cost: unreconciled.

Exact prompt

Pay $1000 now, then receive $400 at each year end for three years. Use a 10% annual discount rate. Return net present value without rounding intermediate values. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: npv. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

NPV = -1000 + 400 × (1/1.1 + 1/1.21 + 1/1.331)

The annuity factor is 1/1.1 + 1/1.21 + 1/1.331 = (1.21×1.1 + 1.1×1.1... let me compute over the common denominator 1.331:
1.21 + 1.1 + 1 = 3.31, so the factor is 3.31/1.331 = 2.486851990984...

Then 400 × 3.31/1.331 = 1324/1.331 = 994.7407963936...

Check the division: 1.331 × 994.74 = 1323.98..., since 1.331×994 = 1323.014 and 1.331×0.74 = 0.98494, the total is 1323.99894. The remainder is 1324 − 1323.99894 = 0.00106, and 0.00106/1.331 = 0.000796394. So the value is 994.740796394...

More digits: 0.00106/1.331 = 0.00079639368...
1.331 × 0.000796 = 0.001059476; the remainder is 0.000000524, and 0.000000524/1.331 = 3.9369e-7. So the value is 0.00079639369, and 1324/1.331 = 994.74079639369.

NPV = -5.25920360631

Check: 1000 − 994.74079639369 = 5.25920360631.

```json
{"npv": -5.25920360631}
```

Response SHA-256: db0899da9a9aa65d2226c14d1b4b8a89c8969c3a01e08d141042f95c4ea426ae

math-allocation · repeat 1 · Fail

invalid_artifact · responded · 2026-10-05T05:43:45.015138+00:00 UTC

Request: req_011CfiZL1UJwcT6VQE8qZv4o. Estimated cost: US$0.001986. Billed cost: unreconciled.

Exact prompt

Allocate exactly $10.00 to three departments with weights 1, 1, 1. Work in cents: floor shares, then allocate remaining cents by descending fractional remainder, ties to lower index. Return integer cents for departments A, B and C. Return exact values when representable as terminating decimals. For nonterminating values, provide at least 10 significant digits; do not round intermediate values or final answers to cents or two decimal places. These fields require exact integer-valued numbers (1 and 1.0 are equivalent): a_cents, b_cents, c_cents. All other numeric fields use absolute tolerance 0.000001 or relative tolerance 0.00000001. Return exactly one JSON object with these keys: a_cents, b_cents, c_cents. Numeric fields must be finite numbers. Use each requested key once, no extra keys, no numeric strings, booleans, Markdown or explanation.

Retained output

$10.00 is 1000 cents. Each department's exact share is 1000/3 = 333.333... cents, so the floor is 333 each, which totals 999 cents. One cent remains.

All three fractional remainders are equal (about 0.333), so the tie goes to the lowest index, which is department A. A gets the extra cent.

{"a_cents": 334, "b_cents": 333, "c_cents": 333}

Response SHA-256: bf684730c9b56ab8a90875c14c44f9a71ac6d9596939eebea0106053d3d6c9cf

tested-best-bank-v1

Separate measurement contract · 1 measured cohort · db00b0c82d7a

0%25%50%75%100%2026-10-04 UTC
Each dot is one measured cohort. Bars summarize task/repeat variation; they do not estimate week-to-week noise from one cohort. No interpolation across missing weeks.
math measurements and service behavior
Measured UTCPass rate95% bandAttemptsResponsesProvider failuresMedian latencyCapped / refusal flagsReceipts
2026-10-04 17:018.3%0.0%–25.0%36 / 3636 / 3601.99 s0 / 0Original JSON
Correction
Measurement contract and limitations
Task-bank SHA-256
8ad4dea4fe0b53a67184c305f645a228a1a0d48425a7787bae5990c7e7fd023e
Protocol SHA-256
06e5a0f38a9ad3b58d5afad4822ef747debe2a458340a5e752ea6d016aaa7f52
Grader contract
62980813a06357fd89c914858db26855ffe2bd65a7e18f326d827fb6610e7e23
Model configuration
04e4af3ce275b597cf00f2c7dc53d1c4bd14f4df1016870506fb403d1da26a0e

One point is one cohort, not a week of daily tests.

Exact returned model identity was validated by the source runner; the public projection exposes the admitted ID and response hash.

Hidden fixtures and private transport responses remain with the source owner.

v1 uses the disclosed offline correction. Original grades remain in each affected receipt.

Inspect 36 retained attempts
math-margin · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:55:26.190264+00:00 UTC

Request: req_011CfhYjqoSa7CFzJZ62CHmE. Estimated cost: US$0.002300. Billed cost: unreconciled.

Exact prompt

A shop buys 240 items at $18 each. It sells 210 at $30 and 30 at $24. Platform fees are 3% of revenue plus $0.20 per sold item. Shipping costs $2.50 per sold item. Calculate revenue, profit after these costs, and profit margin as a percentage of revenue. Return only a JSON object with these keys: revenue, profit, margin_percent. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Revenue: 210×30 = 6300; 30×24 = 720; total 7020.
Cost of goods: 240×18 = 4320.
Platform fees: 0.03×7020 = 210.60; per item 0.20×240 = 48; total 258.60.
Shipping: 2.50×240 = 600.
Profit: 7020 − 4320 − 258.60 − 600 = 1841.40.
Margin: 1841.40/7020 = 0.262308 → 26.23%.

{"revenue": 7020, "profit": 1841.4, "margin_percent": 26.23}

Response SHA-256: 584a770ac600b17e930b66af4a0329bb9d5e1711d4af719fea98d089b9bc091a

math-bayes · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:57:24.954416+00:00 UTC

Request: req_011CfhYtdBAxfoEc3Dspxix6. Estimated cost: US$0.001624. Billed cost: unreconciled.

Exact prompt

A defect affects 2% of units. A detector flags 95% of defective units and 4% of nondefective units. Given a flag, calculate the probability the unit is defective, as a decimal from 0 to 1. Return only a JSON object with these keys: probability. Numeric fields must be numbers. No Markdown or explanation.

Retained output

P(D)=0.02, P(F|D)=0.95, P(F|not D)=0.04.
Numerator: 0.02*0.95=0.019
Denominator: 0.019+0.98*0.04=0.019+0.0392=0.0582
Probability=0.019/0.0582=0.326460...

0.0582*0.3265=0.01900; so ≈0.32646.

{"probability": 0.32646}

Response SHA-256: ac464ff1a6db064b8535376264f63d92623f97c15efe69cc88dcba1a70511815

math-allocation · repeat 3 · Pass

correct · responded · 2026-10-04T17:01:24.616847+00:00 UTC

Request: req_011CfhZCM2L9BzBZrYGpPTmz. Estimated cost: US$0.000576. Billed cost: unreconciled.

Exact prompt

Allocate exactly $10.00 to three departments with weights 1, 1, 1. Work in cents: floor shares, then allocate remaining cents by descending fractional remainder, ties to lower index. Return integer cents for departments A, B and C. Return only a JSON object with these keys: a_cents, b_cents, c_cents. Numeric fields must be numbers. No Markdown or explanation.

Retained output

{"a_cents": 334, "b_cents": 333, "c_cents": 333}

Response SHA-256: c423f92e1669e1a9ec27153035c1e4edc8cd4c89714ec6d6c7c44c1461532c18

math-loan · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:45:48.927908+00:00 UTC

Request: req_011CfhXzxbmjjapqAqh3nWoR. Estimated cost: US$0.008668. Billed cost: unreconciled.

Exact prompt

A $12000 loan charges a nominal annual rate of 12%, compounded monthly, repaid with 24 equal end-of-month payments. Calculate the monthly payment and total interest, without intermediate rounding. Return only a JSON object with these keys: payment, interest. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Monthly rate i = 0.01, n = 24.

Payment = 12000 · 0.01 / (1 − 1.01^-24).

1.01^24 = 1.269734648531914, so 1.01^-24 = 0.787566178...

Check: 1/1.269734648531914 ≈ 0.78756618. Then 1 − 0.78756618 = 0.21243382.

Payment = 120 / 0.21243382 ≈ 564.8707.

More precisely: 0.21243382 × 565 = 120.0241, which is 0.0241 too high; 0.0241/0.21243 = 0.1134, so payment ≈ 564.8866. Recompute: 0.21243382 × 564.8866 = 0.21243382×564 = 119.81 (0.21243382×500 = 106.21691, ×64 = 13.59576, sum 119.81267), plus 0.21243382×0.8866 = 0.18835, total 120.00102. Slightly high by 0.00102, which is 0.0048 in payment. So payment ≈ 564.8818.

Refine 1.01^-24 more precisely: 1/1.269734648531914. 1.269734648531914 × 0.7875 = 0.99991 (1.269734648×0.7875 = 0.999915...). Compute: 1.269734648×0.78 = 0.990393025; ×0.0075 = 0.009523010; sum 0.999916035. Remainder 0.000083965/1.269734648 = 0.00006613. So the inverse is 0.78756613. Then 1 − that = 0.21243387.

Payment = 120/0.21243387. 0.21243387×564.88 = 0.21243387×564 = 119.812 (0.21243387×564: ×500 = 106.216935, ×64 = 13.595768, sum 119.812703), plus ×0.88 = 0.186941, total 119.999644. Remainder 0.000356/0.21243 = 0.001676. Payment ≈ 564.881676.

The known value is 564.8734? Check against the standard: the payment on 12000 at 1% for 24 months is 564.87 (the factor 0.0470735 × 12000 = 564.88). The factor 0.04707347 × 12000 = 564.8816. Good.

Total interest = 24 × 564.8817 − 12000 = 13557.16 − 12000 = 1557.16.

24 × 564.881676 = 13557.160. Interest ≈ 1557.16.

{"payment": 564.88, "interest": 1557.16}

Response SHA-256: 8f437d75e300c45270fef132ce4def36ed1e919b6e50633bbfc3c7f49c1b2080

math-margin · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:59:13.715036+00:00 UTC

Request: req_011CfhZ2d3xNgm8be5aFpgXU. Estimated cost: US$0.002330. Billed cost: unreconciled.

Exact prompt

A shop buys 240 items at $18 each. It sells 210 at $30 and 30 at $24. Platform fees are 3% of revenue plus $0.20 per sold item. Shipping costs $2.50 per sold item. Calculate revenue, profit after these costs, and profit margin as a percentage of revenue. Return only a JSON object with these keys: revenue, profit, margin_percent. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Revenue: 210×30 = 6300; 30×24 = 720; total 7020.
Cost of goods: 240×18 = 4320.
Platform fees: 0.03×7020 = 210.6; per item: 240×0.20 = 48; total fees 258.6.
Shipping: 240×2.50 = 600.
Profit: 7020 − 4320 − 258.6 − 600 = 1841.4.
Margin: 1841.4/7020 = 0.262308 → 26.23%.

{"revenue": 7020, "profit": 1841.4, "margin_percent": 26.23}

Response SHA-256: d12108aa9c5ddd755928ec639ac932d6ff13e2573067d299e2857d15b535a110

math-allocation · repeat 2 · Pass

correct · responded · 2026-10-04T16:48:08.838340+00:00 UTC

Request: req_011CfhYBgbAiHfX1B3QSpyfy. Estimated cost: US$0.000576. Billed cost: unreconciled.

Exact prompt

Allocate exactly $10.00 to three departments with weights 1, 1, 1. Work in cents: floor shares, then allocate remaining cents by descending fractional remainder, ties to lower index. Return integer cents for departments A, B and C. Return only a JSON object with these keys: a_cents, b_cents, c_cents. Numeric fields must be numbers. No Markdown or explanation.

Retained output

{"a_cents": 334, "b_cents": 333, "c_cents": 333}

Response SHA-256: 6d782508565477b72c059e88a7522d07d372f5ffb8c5e6f985c0eb5c02ad31d3

math-discount · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:41:31.680328+00:00 UTC

Request: req_011CfhXgNzSJJeM3jYxGbgkE. Estimated cost: US$0.001054. Billed cost: unreconciled.

Exact prompt

An item is $250 before discounts and tax. Apply 20% off, then a further 15% off the discounted price, then 8% tax. Return the final price and effective pretax discount percentage. Return only a JSON object with these keys: final_price, discount_percent. Numeric fields must be numbers. No Markdown or explanation.

Retained output

250 × 0.8 = 200; × 0.85 = 170; × 1.08 = 183.6.
Effective pretax discount: (250 − 170)/250 = 32%.

{"final_price": 183.6, "discount_percent": 32}

Response SHA-256: 2e1e934bacd9ff6855e0a86568635b98508650e4d976bf59a1cc3ad4f5b5755d

math-capacity · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:47:15.955080+00:00 UTC

Request: req_011CfhY7f23wV4CjzTvuMW1W. Estimated cost: US$0.002956. Billed cost: unreconciled.

Exact prompt

Product A uses 3 labour hours and 2 machine hours and earns $40 contribution. B uses 2 labour and 4 machine hours and earns $50. Weekly limits are 120 labour and 160 machine hours. Products must be whole units. Maximize contribution; if tied choose more A. Return A, B and contribution. Return only a JSON object with these keys: a, b, contribution. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Maximize 40A + 50B subject to 3A + 2B ≤ 120 and 2A + 4B ≤ 160, with A and B whole numbers.

The two constraints intersect where 3A + 2B = 120 and A + 2B = 80. Subtracting gives 2A = 40, so A = 20 and B = 30. The contribution there is 800 + 1500 = 2300.

Checking the other corner points:
- A = 40, B = 0: 1600
- A = 0, B = 40: 2000

The intersection is integer-valued and gives the highest contribution, 2300. To check for ties, the objective ratio 40:50 differs from both constraint ratios (3:2 and 2:4), so no other point matches 2300.

{"a":20,"b":30,"contribution":2300}

Response SHA-256: 8f1eb86830da3680e3d43e8bcfbf3caf0271b33b5e8b4dc6faebf7574f7d37e5

math-weighted · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:41:37.541741+00:00 UTC

Request: req_011CfhXgoc2rBkJruszLTWxh. Estimated cost: US$0.001404. Billed cost: unreconciled.

Exact prompt

Campaign A has 900 visits and 45 purchases. Campaign B has 100 visits and 20 purchases. Next week A has 100 visits and 8 purchases; B has 900 visits and 162 purchases. Return each week’s total conversion percentage and next-minus-first percentage-point change. Return only a JSON object with these keys: week1_percent, week2_percent, change_points. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Week 1: total visits 1000, purchases 65, so 6.5%.
Week 2: total visits 1000, purchases 170, so 17%.
Change: 17 - 6.5 = 10.5 percentage points.

{"week1_percent": 6.5, "week2_percent": 17, "change_points": 10.5}

Response SHA-256: df574aad0e8950eb4048c0384754b5e173825385953aaa3570bef7c8e3c9c337

math-variance · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:56:33.308318+00:00 UTC

Request: req_011CfhYppbADhZSAtKw93bTv. Estimated cost: US$0.001694. Billed cost: unreconciled.

Exact prompt

For observations 4, 7, 7, 10, 12 calculate the arithmetic mean, unbiased sample variance (denominator n-1), and standard error of the mean. Return only a JSON object with these keys: mean, sample_variance, standard_error. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Mean = (4+7+7+10+12)/5 = 40/5 = 8.

Squared deviations: 16, 1, 1, 4, 16, which sum to 38. Sample variance = 38/4 = 9.5.

Standard error = sqrt(9.5/5) = sqrt(1.9) ≈ 1.378405.

{"mean": 8, "sample_variance": 9.5, "standard_error": 1.378405}

Response SHA-256: f505f4b4e0ccc018df60b9c5daa65695ac48b643baa6a2f55d2f1364667a2c54

math-queue · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:47:33.283535+00:00 UTC

Request: req_011CfhY8w9g8HEz3eRR4Lr5Q. Estimated cost: US$0.003350. Billed cost: unreconciled.

Exact prompt

Each of three independent services succeeds with probability 0.98. A workflow requires all three. It retries the complete workflow once if the first attempt fails; attempts are independent. Calculate eventual success probability and expected number of complete attempts. Return only a JSON object with these keys: success_probability, expected_attempts. Numeric fields must be numbers. No Markdown or explanation.

Retained output

p = 0.98^3 = 0.941192
Failure = 0.058808
Success probability = 1 - 0.058808^2 = 1 - 0.003458700864 = 0.996541299136

Check 0.058808^2: 0.058808*0.058808 = 0.0034587... 0.058808^2 = (0.0588)^2 + 2*0.0588*0.000008 + 6.4e-11 = 0.00345744 + 0.0000009408 + 0.000000000064 = 0.003458380864. Recompute: 0.0588^2 = 0.00345744. Add 0.0000009408 → 0.0034583808, plus 6.4e-11 → 0.003458380864.
Success = 1 - 0.003458380864 = 0.996541619136

Expected attempts = 1 + 0.058808 = 1.058808

{"success_probability": 0.996541619136, "expected_attempts": 1.058808}

Response SHA-256: 7245d4c43def21a30bbe4c10ab2eabfc1fff064725c0d59e4a8dbbe2d0270e25

math-npv · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:43:24.967494+00:00 UTC

Request: req_011CfhXpfUMwMWYSRGo6WgGo. Estimated cost: US$0.001754. Billed cost: unreconciled.

Exact prompt

Pay $1000 now, then receive $400 at each year end for three years. Use a 10% annual discount rate. Return net present value without rounding intermediate values. Return only a JSON object with these keys: npv. Numeric fields must be numbers. No Markdown or explanation.

Retained output

NPV = -1000 + 400*(1/1.1 + 1/1.21 + 1/1.331)

Annuity factor = 2.486851991...
Exactly: 1/1.1 = 0.909090909091, 1/1.21 = 0.826446280992, 1/1.331 = 0.751314800902. Sum = 2.486851990985.

Times 400 = 994.740796394.

NPV = -5.259203606

{"npv": -5.259203606}

Response SHA-256: 053244a42553ccff7e57a4de74cb784276adf03ac420c59b493181d6cc381871

math-loan · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:42:47.795962+00:00 UTC

Request: req_011CfhXmoppFP1k7R2jPstdU. Estimated cost: US$0.003758. Billed cost: unreconciled.

Exact prompt

A $12000 loan charges a nominal annual rate of 12%, compounded monthly, repaid with 24 equal end-of-month payments. Calculate the monthly payment and total interest, without intermediate rounding. Return only a JSON object with these keys: payment, interest. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Monthly rate i = 0.01, n = 24.

Payment = 12000 · i / (1 − (1+i)^−24).

1.01^24 = 1.2697346485 (known value: 1.269734649).
1/1.269734649 = 0.787566 (more precisely 0.78756606).
1 − 0.78756606 = 0.21243394.
Payment = 120 / 0.21243394 = 564.8672...

Check: 0.21243394 × 565 = 120.02512, so the excess is 0.02512 / 0.21243394 = 0.11825. Payment = 565 − 0.11825 = 564.88175.

More precisely, the known payment factor for 1%, 24 months is 0.0470734722, so 12000 × 0.0470734722 = 564.8816664.

Total paid = 564.8816664 × 24 = 13557.16 (564.8816664 × 24 = 13557.1599936).
Interest = 1557.16 (about 1557.1599936).

{"payment": 564.8816664, "interest": 1557.15999}

Response SHA-256: 3a4a002248865a450d0c598661c0196e4838e9db7af1bf9fa7ec7766ff937fbb

math-mix · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:41:11.857541+00:00 UTC

Request: req_011CfhXetF2YMEkZCXWhPtiq. Estimated cost: US$0.001656. Billed cost: unreconciled.

Exact prompt

Make exactly 80 litres of a 35% concentrate from 20% and 60% stocks, with additive volumes. How many litres of each stock are needed? Return only a JSON object with these keys: litres_20, litres_60. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Let x be litres of the 20% stock and 80 − x litres of the 60% stock.

0.20x + 0.60(80 − x) = 0.35 × 80 = 28

0.20x + 48 − 0.60x = 28, so 0.40x = 20 and x = 50.

That gives 50 litres of the 20% stock and 30 litres of the 60% stock.

{"litres_20": 50, "litres_60": 30}

Response SHA-256: 054d20123c004170a56753d5ee964749b3d6b7cee1afb7a6e7c88d2fa928082d

math-break-even · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:59:43.042340+00:00 UTC

Request: req_011CfhZ4oxbFPqZjEUEFsp3z. Estimated cost: US$0.001888. Billed cost: unreconciled.

Exact prompt

A product sells for $40. Variable costs are $17 production, $3 shipping, and a payment fee of 2.5% of sale price plus $0.30. Fixed monthly costs are $1870. Return the minimum whole units needed to break even and profit at that unit count. Return only a JSON object with these keys: units, profit. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Payment fee per unit = 0.025*40 + 0.30 = 1.00 + 0.30 = 1.30.
Variable cost per unit = 17 + 3 + 1.30 = 21.30.
Contribution margin = 40 − 21.30 = 18.70.
Break-even units = 1870 / 18.70 = 100 exactly.
Profit at 100 units = 100 × 18.70 − 1870 = 0.

{"units": 100, "profit": 0}

Response SHA-256: f8546a4db15e702f0a05ed841adba7c60a6298be3db8f689f062a2942cf8e560

math-capacity · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:43:09.370845+00:00 UTC

Request: req_011CfhXoSPH2ZUud9s31dXVn. Estimated cost: US$0.003436. Billed cost: unreconciled.

Exact prompt

Product A uses 3 labour hours and 2 machine hours and earns $40 contribution. B uses 2 labour and 4 machine hours and earns $50. Weekly limits are 120 labour and 160 machine hours. Products must be whole units. Maximize contribution; if tied choose more A. Return A, B and contribution. Return only a JSON object with these keys: a, b, contribution. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Maximize 40A + 50B subject to 3A + 2B ≤ 120 and 2A + 4B ≤ 160, with A and B whole numbers.

The two constraints intersect where 3A + 2B = 120 and A + 2B = 80. Subtracting gives 2A = 40, so A = 20 and B = 30. The contribution there is 800 + 1500 = 2300.

Checking the other corner points:
- A = 0, B = 40 gives 2000.
- A = 40, B = 0 gives 1600.

The intersection is integer-valued and gives the highest contribution found. The objective slope (40:50) lies between the constraint slopes, so the optimum is at the vertex. Ties are not a concern, since the objective is not parallel to either constraint: 40/50 = 0.8, versus 3/2 = 1.5 and 2/4 = 0.5.

{"a":20,"b":30,"contribution":2300}

Response SHA-256: 797fbbd35669cc0a3a97ad8820074042cfa4d072521d06f280694dd8e322b472

math-bayes · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:41:04.370690+00:00 UTC

Request: req_011CfhXeMSsYwuqdgbC4P4JT. Estimated cost: US$0.001384. Billed cost: unreconciled.

Exact prompt

A defect affects 2% of units. A detector flags 95% of defective units and 4% of nondefective units. Given a flag, calculate the probability the unit is defective, as a decimal from 0 to 1. Return only a JSON object with these keys: probability. Numeric fields must be numbers. No Markdown or explanation.

Retained output

P(defective | flag) = (0.02 × 0.95) / (0.02 × 0.95 + 0.98 × 0.04)

The numerator is 0.019 and the second term in the denominator is 0.0392, so the denominator is 0.0582.

0.019 / 0.0582 = 0.326460...

{"probability": 0.3265}

Response SHA-256: 27ed784b8ea492bb9eb04db0cd60358f547119ad0abd3b0ffbd0229770d40785

math-variance · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:44:12.091808+00:00 UTC

Request: req_011CfhXtAQVD17aYKBu9ioAU. Estimated cost: US$0.001724. Billed cost: unreconciled.

Exact prompt

For observations 4, 7, 7, 10, 12 calculate the arithmetic mean, unbiased sample variance (denominator n-1), and standard error of the mean. Return only a JSON object with these keys: mean, sample_variance, standard_error. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Sum = 4+7+7+10+12 = 40, so the mean is 8.

Squared deviations: 16, 1, 1, 4, 16, which sum to 38. Sample variance = 38/4 = 9.5.

Standard error = sqrt(9.5/5) = sqrt(1.9) ≈ 1.378405.

{"mean": 8, "sample_variance": 9.5, "standard_error": 1.3784048752090222}

Response SHA-256: 8dc784091eb5f12110deead04266393cdc5d5f5c47fdba27889ba297ba5be44c

math-discount · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:56:59.366151+00:00 UTC

Request: req_011CfhYrkZsQHxwHKtrgKD1e. Estimated cost: US$0.001054. Billed cost: unreconciled.

Exact prompt

An item is $250 before discounts and tax. Apply 20% off, then a further 15% off the discounted price, then 8% tax. Return the final price and effective pretax discount percentage. Return only a JSON object with these keys: final_price, discount_percent. Numeric fields must be numbers. No Markdown or explanation.

Retained output

250 × 0.8 = 200; × 0.85 = 170; × 1.08 = 183.6. The effective pretax discount is (250 − 170) / 250 = 32%.

{"final_price": 183.6, "discount_percent": 32}

Response SHA-256: a7883c17ee340f2f3ad7042ea8f267deaa0c85a88a9cca715fca9cf725ce3c23

math-capacity · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:57:36.061170+00:00 UTC

Request: req_011CfhYuMTtK3DeXHGiHvN2R. Estimated cost: US$0.002876. Billed cost: unreconciled.

Exact prompt

Product A uses 3 labour hours and 2 machine hours and earns $40 contribution. B uses 2 labour and 4 machine hours and earns $50. Weekly limits are 120 labour and 160 machine hours. Products must be whole units. Maximize contribution; if tied choose more A. Return A, B and contribution. Return only a JSON object with these keys: a, b, contribution. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Maximize 40A + 50B subject to 3A + 2B ≤ 120 and 2A + 4B ≤ 160, with A and B whole numbers.

The two constraints intersect where 3A + 2B = 120 and A + 2B = 80. Subtracting gives 2A = 40, so A = 20 and B = 30. The contribution there is 800 + 1500 = 2300.

Checking the other corners:
- A = 0, B = 40 gives 2000.
- A = 40, B = 0 gives 1600.

Since 2300 is the largest and the intersection is already whole numbers, it is optimal. The ratios 40/50 and 3/2 do not match, so there are no ties along an edge.

{"a":20,"b":30,"contribution":2300}

Response SHA-256: d0c18a79a7d2f6a4abca0636ced37d6a8d4947864821edf499f0a810c3e9d2a8

math-break-even · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:47:25.240163+00:00 UTC

Request: req_011CfhY8RYxddg9qbSvUrTPU. Estimated cost: US$0.001868. Billed cost: unreconciled.

Exact prompt

A product sells for $40. Variable costs are $17 production, $3 shipping, and a payment fee of 2.5% of sale price plus $0.30. Fixed monthly costs are $1870. Return the minimum whole units needed to break even and profit at that unit count. Return only a JSON object with these keys: units, profit. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Payment fee per unit = 0.025*40 + 0.30 = 1.00 + 0.30 = 1.30.
Variable cost per unit = 17 + 3 + 1.30 = 21.30.
Contribution margin = 40 - 21.30 = 18.70.
Break-even units = 1870 / 18.70 = 100 exactly.
Profit at 100 units = 100*18.70 - 1870 = 0.

{"units": 100, "profit": 0}

Response SHA-256: 4613d91c56d18f4fb34ab1e0311c52fe74bb452982edbe22baea3320699eca1d

math-mix · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T17:01:17.623213+00:00 UTC

Request: req_011CfhZBn6RKQUUo4f3N5aWT. Estimated cost: US$0.001566. Billed cost: unreconciled.

Exact prompt

Make exactly 80 litres of a 35% concentrate from 20% and 60% stocks, with additive volumes. How many litres of each stock are needed? Return only a JSON object with these keys: litres_20, litres_60. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Let x be litres of the 20% stock and 80 − x litres of the 60% stock.

0.20x + 0.60(80 − x) = 0.35 × 80
0.20x + 48 − 0.60x = 28
−0.40x = −20
x = 50

So 50 litres of the 20% stock and 30 litres of the 60% stock.

{"litres_20": 50, "litres_60": 30}

Response SHA-256: c8a50de34365be000397830b598c88e9ac4156ed137d8423e75141e31b4ef297

math-bayes · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:55:53.820460+00:00 UTC

Request: req_011CfhYmuv3rSV4nZTx6rHLM. Estimated cost: US$0.001404. Billed cost: unreconciled.

Exact prompt

A defect affects 2% of units. A detector flags 95% of defective units and 4% of nondefective units. Given a flag, calculate the probability the unit is defective, as a decimal from 0 to 1. Return only a JSON object with these keys: probability. Numeric fields must be numbers. No Markdown or explanation.

Retained output

P(D)=0.02, P(F|D)=0.95, P(F|not D)=0.04.

Numerator: 0.02*0.95=0.019
Denominator: 0.019+0.98*0.04=0.019+0.0392=0.0582
Probability = 0.019/0.0582 = 0.326460...

{"probability": 0.32646}

Response SHA-256: 2fa1cbeb6f9c74eb24bfe1bbe461425d27bc4e1129a2fffff21c64ea745d2576

math-variance · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:56:01.158654+00:00 UTC

Request: req_011CfhYnScWNfpSciF4m21Z5. Estimated cost: US$0.001744. Billed cost: unreconciled.

Exact prompt

For observations 4, 7, 7, 10, 12 calculate the arithmetic mean, unbiased sample variance (denominator n-1), and standard error of the mean. Return only a JSON object with these keys: mean, sample_variance, standard_error. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Mean = (4+7+7+10+12)/5 = 40/5 = 8.

Squared deviations: 16, 1, 1, 4, 16, which sum to 38.

Sample variance = 38/4 = 9.5.

Standard error = sqrt(9.5/5) = sqrt(1.9) ≈ 1.378405.

{"mean": 8, "sample_variance": 9.5, "standard_error": 1.3784048752090222}

Response SHA-256: 5ce30e80416e4c935e4adacba67e56a052a8e4b56f834ebb61e34daa1dea9917

math-break-even · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:44:27.754871+00:00 UTC

Request: req_011CfhXuLE7oCvCuAujT2oDf. Estimated cost: US$0.001868. Billed cost: unreconciled.

Exact prompt

A product sells for $40. Variable costs are $17 production, $3 shipping, and a payment fee of 2.5% of sale price plus $0.30. Fixed monthly costs are $1870. Return the minimum whole units needed to break even and profit at that unit count. Return only a JSON object with these keys: units, profit. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Payment fee per unit: 0.025*40 + 0.30 = 1.00 + 0.30 = 1.30.
Variable cost per unit: 17 + 3 + 1.30 = 21.30.
Contribution margin: 40 - 21.30 = 18.70.
Break-even units: 1870 / 18.70 = 100 exactly.
Profit at 100 units: 100*18.70 - 1870 = 0.

{"units": 100, "profit": 0}

Response SHA-256: 7d710de226f315eb95ce5b22053a222499d38f1547d0e0eb94dbcb5c7df5e0ac

math-weighted · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:56:21.927656+00:00 UTC

Request: req_011CfhYozgbZNnHsDtGReysZ. Estimated cost: US$0.001304. Billed cost: unreconciled.

Exact prompt

Campaign A has 900 visits and 45 purchases. Campaign B has 100 visits and 20 purchases. Next week A has 100 visits and 8 purchases; B has 900 visits and 162 purchases. Return each week’s total conversion percentage and next-minus-first percentage-point change. Return only a JSON object with these keys: week1_percent, week2_percent, change_points. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Week 1: total visits 1000, purchases 65, so 6.5%.
Week 2: total visits 1000, purchases 170, so 17%.
Change: 10.5 percentage points.

{"week1_percent": 6.5, "week2_percent": 17, "change_points": 10.5}

Response SHA-256: 0d600e5ce6b6294d68b08e03fe0538ba23f80b4f7d1457d3369fb464b806f182

math-npv · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:59:24.268366+00:00 UTC

Request: req_011CfhZ3Lxc79wKBq8tYx9BN. Estimated cost: US$0.002634. Billed cost: unreconciled.

Exact prompt

Pay $1000 now, then receive $400 at each year end for three years. Use a 10% annual discount rate. Return net present value without rounding intermediate values. Return only a JSON object with these keys: npv. Numeric fields must be numbers. No Markdown or explanation.

Retained output

NPV = -1000 + 400 × (1/1.1 + 1/1.21 + 1/1.331)

Annuity factor = (1 - 1.1^-3)/0.1. 1.1^3 = 1.331, so 1/1.331 = 0.7513148009...

Annuity factor = (1 - 0.7513148009)/0.1 = 2.486851991

400 × 2.486851991 = 994.7407963

NPV = -5.2592037

More precisely: 1/1.331 = 0.75131480090157..., 1 - that = 0.24868519909843, factor = 2.4868519909843, times 400 = 994.74079639372, NPV = -5.25920360628.

{"npv": -5.25920360628}

Response SHA-256: 3687ccdfdbc7a3a2e79178e7cb49e2af33495ac809b8f6a033a0ba8ce4504625

math-queue · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T17:00:54.990447+00:00 UTC

Request: req_011CfhZA15xSidnJCysj9ikm. Estimated cost: US$0.003510. Billed cost: unreconciled.

Exact prompt

Each of three independent services succeeds with probability 0.98. A workflow requires all three. It retries the complete workflow once if the first attempt fails; attempts are independent. Calculate eventual success probability and expected number of complete attempts. Return only a JSON object with these keys: success_probability, expected_attempts. Numeric fields must be numbers. No Markdown or explanation.

Retained output

p = 0.98^3 = 0.941192
Failure = 0.058808
Success probability = 1 - 0.058808^2 = 1 - 0.003458540864 = 0.996541459136

0.058808^2: 0.058808*0.058808 = 0.003458 (0.058808*0.05=0.0029404; *0.008808=0.00051798...). Compute precisely: 0.058808*0.008808 = 0.000517980... 0.058808*0.008=0.000470464; *0.000808=0.0000475168 (0.058808*0.0008=0.0000470464; *0.000008=0.000000470464; sum 0.000047516864). Total 0.000517980864. Plus 0.0029404 = 0.003458380864.

So success = 1 - 0.003458380864 = 0.996541619136.

Expected attempts = 1 + 0.058808 = 1.058808

{"success_probability": 0.996541619136, "expected_attempts": 1.058808}

Response SHA-256: 84ce34c47b9dc0b67158f2262698266b88470889a5443cb8eba71aaf4c24d111

math-npv · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:45:30.760642+00:00 UTC

Request: req_011CfhXyqTdSQiXL7LEqJFVz. Estimated cost: US$0.003994. Billed cost: unreconciled.

Exact prompt

Pay $1000 now, then receive $400 at each year end for three years. Use a 10% annual discount rate. Return net present value without rounding intermediate values. Return only a JSON object with these keys: npv. Numeric fields must be numbers. No Markdown or explanation.

Retained output

NPV = -1000 + 400 × (1/1.1 + 1/1.21 + 1/1.331)

Annuity factor = (1 - 1.1^-3)/0.1 = 2.486851991...

Exact: 1/1.1 = 0.909090909..., 1/1.21 = 0.826446281, 1/1.331 = 0.751314801. Sum = 2.486851991.

Times 400 = 994.7407964

NPV = -5.2592036

More precisely, the sum is 2.4868519909842 (since 1.1^3 = 1.331, the exact sum is (1.21 + 1.1 + 1)/1.331 = 3.31/1.331 = 2.48685199098...). Times 400 = 1324/1.331 = 994.740796...; 1324/1.331 = 994.7407964...; NPV = -5.2592036.

Check: 1.331 × 994.7408 = 1324.0000 (1.331 × 994.7408 = 994.7408 + 0.331×994.7408 = 994.7408 + 329.2593 = 1324.0001). Good.

{"npv": -5.259203606311}

Response SHA-256: 6079a30d8a4e1b8248a59520bd93d4a4db37b93f15a17a181249c6b94b160a9e

math-allocation · repeat 1 · Pass

correct · responded · 2026-10-04T16:43:15.358063+00:00 UTC

Request: req_011CfhXp3MDTyHT7n4SBaXbD. Estimated cost: US$0.000576. Billed cost: unreconciled.

Exact prompt

Allocate exactly $10.00 to three departments with weights 1, 1, 1. Work in cents: floor shares, then allocate remaining cents by descending fractional remainder, ties to lower index. Return integer cents for departments A, B and C. Return only a JSON object with these keys: a_cents, b_cents, c_cents. Numeric fields must be numbers. No Markdown or explanation.

Retained output

{"a_cents": 334, "b_cents": 333, "c_cents": 333}

Response SHA-256: 2b97eaffe81917d214feb3e8a5d0077606f0c88dd5f9d3afbaea74c942ce43b0

math-queue · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:44:20.790319+00:00 UTC

Request: req_011CfhXtmHxoTMeBZhy24chh. Estimated cost: US$0.002300. Billed cost: unreconciled.

Exact prompt

Each of three independent services succeeds with probability 0.98. A workflow requires all three. It retries the complete workflow once if the first attempt fails; attempts are independent. Calculate eventual success probability and expected number of complete attempts. Return only a JSON object with these keys: success_probability, expected_attempts. Numeric fields must be numbers. No Markdown or explanation.

Retained output

p = 0.98^3 = 0.941192
Failure = 0.058808
Success probability = 1 - 0.058808^2 = 1 - 0.003458... compute: 0.058808^2 = 0.003458380864 (0.058808*0.058808: 0.058808*0.05=0.0029404; *0.008808=0.000517981...; sum: 0.0029404+0.00051798=0.00345838). So success = 0.996541619136.

Expected attempts = 1 + 0.058808 = 1.058808.

{"success_probability": 0.996541619136, "expected_attempts": 1.058808}

Response SHA-256: 2c08c4229981a825b5ce9949b7a13b5315d5e3fa7c9ffe9539fd33853022c46c

math-margin · repeat 1 · Fail

invalid_artifact · responded · 2026-10-04T16:43:34.750322+00:00 UTC

Request: req_011CfhXqQQXCpbEDNtbcQJau. Estimated cost: US$0.002340. Billed cost: unreconciled.

Exact prompt

A shop buys 240 items at $18 each. It sells 210 at $30 and 30 at $24. Platform fees are 3% of revenue plus $0.20 per sold item. Shipping costs $2.50 per sold item. Calculate revenue, profit after these costs, and profit margin as a percentage of revenue. Return only a JSON object with these keys: revenue, profit, margin_percent. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Revenue: 210×30 = 6300; 30×24 = 720; total 7020.
Cost of goods: 240×18 = 4320.
Platform fees: 0.03×7020 = 210.6; per-item fee: 240×0.20 = 48; total 258.6.
Shipping: 240×2.50 = 600.
Profit: 7020 − 4320 − 258.6 − 600 = 1841.4.
Margin: 1841.4/7020 = 0.262308 → 26.23%.

{"revenue": 7020, "profit": 1841.4, "margin_percent": 26.23}

Response SHA-256: 121e94f4c7fd2a474b01b5ae0c4aec31cbe095caaea99a6cff98850a793308a3

math-weighted · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:58:07.158988+00:00 UTC

Request: req_011CfhYwk7xtNXvP6QoNEe2D. Estimated cost: US$0.001444. Billed cost: unreconciled.

Exact prompt

Campaign A has 900 visits and 45 purchases. Campaign B has 100 visits and 20 purchases. Next week A has 100 visits and 8 purchases; B has 900 visits and 162 purchases. Return each week’s total conversion percentage and next-minus-first percentage-point change. Return only a JSON object with these keys: week1_percent, week2_percent, change_points. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Week 1: total visits = 1000, purchases = 65, so 6.5%.
Week 2: total visits = 1000, purchases = 170, so 17%.
Change: 17 − 6.5 = 10.5 percentage points.

{"week1_percent": 6.5, "week2_percent": 17, "change_points": 10.5}

Response SHA-256: 1a6914e5e8df3ba431cae26ca5ea928fa3de6d1ccb0aabdfd3589f08bd92d04b

math-discount · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:55:46.386518+00:00 UTC

Request: req_011CfhYmPBc7YXPxBtL7NbJu. Estimated cost: US$0.001044. Billed cost: unreconciled.

Exact prompt

An item is $250 before discounts and tax. Apply 20% off, then a further 15% off the discounted price, then 8% tax. Return the final price and effective pretax discount percentage. Return only a JSON object with these keys: final_price, discount_percent. Numeric fields must be numbers. No Markdown or explanation.

Retained output

250 × 0.8 = 200; × 0.85 = 170; × 1.08 = 183.6. Effective pretax discount: (250 − 170)/250 = 32%.

{"final_price": 183.6, "discount_percent": 32}

Response SHA-256: 4248763d3f3a4601b78c607692fe73cb25a9ca6d8ab0a685e4d1328e12bd2ba2

math-loan · repeat 3 · Fail

invalid_artifact · responded · 2026-10-04T16:58:00.036845+00:00 UTC

Request: req_011CfhYvwBTST1x6TpjC1HAw. Estimated cost: US$0.005998. Billed cost: unreconciled.

Exact prompt

A $12000 loan charges a nominal annual rate of 12%, compounded monthly, repaid with 24 equal end-of-month payments. Calculate the monthly payment and total interest, without intermediate rounding. Return only a JSON object with these keys: payment, interest. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Monthly rate i = 0.01, n = 24.

Payment = 12000 · 0.01 / (1 − 1.01^−24).

1.01^24 = 1.269734648531914...
1.01^−24 = 1/1.269734648531914 = 0.787566...

Compute: 1/1.2697346485 ≈ 0.78756691. Check: 1.2697346485 × 0.78756691 = 1.0000000 (1.2697346485×0.78 = 0.99039302; ×0.00756691 = 0.00960800; total 1.00000102, slightly high). Adjust: 0.00000102/1.26973 ≈ 0.0000008, so 0.7875661.

Then 1 − 0.7875661 = 0.2124339.
Payment = 120 / 0.2124339 = 564.8...

Compute: 0.2124339 × 565 = 120.0242. Excess 0.0242/0.2124339 = 0.1139. So the payment ≈ 564.886.

More precisely, the known value is 564.8671 for a 24-month 1% loan per 12000 (the factor 0.0470735 × 12000 = 564.882). The standard payment factor for 1%, 24 months is 0.04707347. Times 12000 = 564.88164.

Check: 0.04707347 × 12000 = 564.88164. This agrees with the estimate of about 564.886 within the rounding error of the hand calculation.

Total paid = 564.88164 × 24 = 13557.159; interest ≈ 1557.159.

More digits: the factor 0.0470734722 gives 564.88167 and 13557.1601, so the interest is 1557.16.

{"payment": 564.8816, "interest": 1557.16}

Response SHA-256: 838c12d38a0805ad747b315b6c7e0e9125151142e64861a92a7569efcfb2b5dc

math-mix · repeat 2 · Fail

invalid_artifact · responded · 2026-10-04T16:46:46.865688+00:00 UTC

Request: req_011CfhY5bd6JbbhrZ7N6VNJR. Estimated cost: US$0.001456. Billed cost: unreconciled.

Exact prompt

Make exactly 80 litres of a 35% concentrate from 20% and 60% stocks, with additive volumes. How many litres of each stock are needed? Return only a JSON object with these keys: litres_20, litres_60. Numeric fields must be numbers. No Markdown or explanation.

Retained output

Let x be the litres of the 20% stock. Then x + y = 80 and 0.2x + 0.6y = 0.35·80 = 28.

Substituting y = 80 − x: 0.2x + 48 − 0.6x = 28, so −0.4x = −20 and x = 50. Then y = 30.

{"litres_20": 50, "litres_60": 30}

Response SHA-256: 91cfa38894964185cb69f862ed304b2e1d557d9342407946aea730d0dffc80a7