Benchmark v1.0 · report
Step-5-Preview-high
setup
- model type
- proprietary
- inference provider
- Kilocode gateway
- harness
- Kilocode
- model
- Step-5-Preview-high
started 2026-10-11 12:43 UTC
overall
Answered 28 of 49 challenges; 28 correct.
28 of 49 challenges passed
partial run · 21 unanswered, counted against the score
- 28 passed
- 21 not answered
vitals
time
1h 12m
answered
57%
failed
0%
success
57%
systems
Math test
9/9 passed
letter-count-1✓ pass2m 58s
prompt
How many times does the letter "z" appear in "luzzdorzan"? Answer with just the number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Trivial: scanned luzzdorzan letter by letter and found z at positions 3, 4 and 7.
decimal-compare-1✓ pass14s
prompt
Which decimal number is larger, 6.7 or 6.66? Answer with just the larger number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Straightforward decimal comparison: 6.66 vs 6.70.
arithmetic-1✓ pass4s
prompt
Compute step by step, left to right (no operator precedence): 11 - 8 - 7 * 3 / 2. Answer with just the final number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Followed the instruction to ignore operator precedence: 11-8=3, 3-7=-4, -4*3=-12, -12/2=-6.
unit-convert-1✓ pass42s
prompt
Convert 1 hours to minutes. Now treat that resulting number as a fresh quantity of GB and convert it to MB (1 GB = 1000 MB). Answer with just the final integer number of MB.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
1 hour = 60 minutes, then treated 60 as GB and converted at 1000 MB/GB = 60000 MB.
format-json-1✓ pass6s
prompt
Reply with ONLY a JSON object, no other text. The object must have exactly two keys, in this order: "answer" then "checksum". "answer" must be the string "7448". "checksum" must be a JSON number (not a string) equal to the sum of the digits of 7448. Example shape: {"answer":"1234","checksum":10}answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Digit sum 7+4+4+8=23, emitted as a bare JSON object with keys in the requested order and checksum as a number.
math-add-1✓ pass4s
prompt
What is 8 + 17? Answer with just the number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
8+17=25. Trivial.
math-sum-1✓ pass4s
prompt
Compute the exact sum of 240 + 180. Respond with just the integer.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
240+180=420. Trivial.
math-expression-1✓ pass5s
prompt
Evaluate this expression exactly and respond with just the integer: ((1 + 2) * (15 - 23)) + (1 * -8) - 38answer
answer hidden on shared reportsgrader · score 1
agent's debrief
(1+2)=3 and (15-23)=-8, so 3*-8=-24; then -8; then -38, totalling -70.
math-determinant-1✓ pass41s
prompt
Compute the exact determinant of this 4x4 matrix. Respond with just the integer. [5, 5, -6, 7] [-8, 4, -4, 8] [3, -8, 4, -5] [-7, 8, 5, 8]answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Ran it in Python twice, once by cofactor expansion and once by fraction-based Gaussian elimination, and both gave -5044.
Vision test
19/19 passed
acuity-20✓ pass5m 48s
prompt
Look at the image at (fetch it and view it). This is an eye chart with 7 numbered rows, each containing 3 groups of 5 characters. Read row 4, group 1 (groups are numbered left to right). What are the 5 characters, in order? Answer with just the 5-character code, e.g. AB3XZ.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Fetched the PNG and read it directly; row 4 group 1 is clearly TWAEU.
acuity-14✓ pass12s
prompt
Look at the image at (fetch it and view it). This is an eye chart with 7 numbered rows, each containing 3 groups of 5 characters. Read row 5, group 3 (groups are numbered left to right). What are the 5 characters, in order? Answer with just the 5-character code, e.g. AB3XZ.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Read the chart directly; row 5 group 3 is 4MUXD, though the small type makes O/0 style confusions a small risk.
acuity-10✓ pass14s
prompt
Look at the image at (fetch it and view it). This is an eye chart with 7 numbered rows, each containing 3 groups of 5 characters. Read row 6, group 2 (groups are numbered left to right). What are the 5 characters, in order? Answer with just the 5-character code, e.g. AB3XZ.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Row 6 group 2 reads 6BJYD; the 6/B pair in a tiny font is the part I am least sure about.
acuity-8✓ pass55s
prompt
Look at the image at (fetch it and view it). This is an eye chart with 7 numbered rows, each containing 3 groups of 5 characters. Read row 7, group 1 (groups are numbered left to right). What are the 5 characters, in order? Answer with just the 5-character code, e.g. AB3XZ.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Row 7 group 1 is the smallest text and reads C3Q4N; I am reasonably but not fully certain about the digit/letter order at that size.
count-simple✓ pass54s
prompt
Look at the image at (fetch it and view it). How many orange triangles are in the image? Answer with just the number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Counted the orange triangles directly: three in a row, one below-right, then a pair lower-right, for 6.
count-medium✓ pass43s
prompt
Look at the image at (fetch it and view it). How many blue circles are in the image? Answer with just the number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Counted row by row and cross-checked: 13 blue circles, plus 4 teal, 2 red and 1 orange circle = 20 circles total, which matches my scan. Blue squares and the blue triangle were excluded.
count-complex✓ pass3m 15s
prompt
Look at the image at (fetch it and view it). How many orange circles are in the image? Answer with just the number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
My visual scan said 19 but I distrusted it on this dense image, so I analysed the PNG in Python: exactly 29 orange shapes with pixel counts splitting cleanly into 21 circles (1460 px), 6 diamonds (924 px) and 2 squares (1916 px). Answer 21.
spatial-simple✓ pass19s
prompt
Look at the image at (fetch it and view it). Which cell contains the red circle? Answer as: row R, column C (1-indexed from top-left).answer
answer hidden on shared reportsgrader · score 1
agent's debrief
5x5 grid; the single red circle is top row, third cell from the left.
spatial-medium✓ pass44s
prompt
Look at the image at (fetch it and view it). Which shape has an arrow pointing to the orange circle? Answer with just the colour and shape, e.g. teal diamond.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Traced the five arrows in the grid; the one terminating on the orange circle originates at the purple square two rows up and one column left.
spatial-complex✓ pass12m 54s
prompt
Look at the image at (fetch it and view it). How many shapes come after the green circle along the arrows? Answer with just the number.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
This was the hardest vision item so far - 14 arrows crossing an 8x8 grid. I skeletonised the arrow lines in Python and matched endpoints to shape cells, then cross-checked the result by rendering the arrow mask as ASCII and by viewing a zoomed crop. The arrows form a single path: (5,7)->(2,8)->(3,5)->(4,2)->(6,3 green circle)->(5,1)->(7,2)->(4,1)->(5,3)->(4,5)->(6,6)->(5,8)->(2,7)->(1,5). Nine shapes follow the green circle. The single-chain consistency check is what gives me confidence.
chart-simple✓ pass1m 50s
prompt
Look at the image at (fetch it and view it). Using the "Support Tickets Opened" chart, approximately what value did Apr have? Read it off the y-axis; answers within +/-5 are accepted.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Read the bar visually as about 23, then confirmed by pixel measurement: axis labels give 10 px per ticket and the Apr bar is 230 px tall = 23.
chart-medium✓ pass1m 27s
prompt
Look at the image at (fetch it and view it). Using the "New Signups" chart, approximately what value did Apr have? Read it off the y-axis; answers within +/-5 are accepted.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Measured pixels: axis labels give exactly 5.4 px per signup (verified against all six tick labels), and the Apr bar is 340 px tall, so 63. Comfortably inside the +/-5 tolerance.
chart-complex✓ pass1m 33s
prompt
Look at the image at (fetch it and view it). Using the "Monthly Active Users" chart, approximately what is the difference between Americas and Europe in Oct? Answers within +/-4 are accepted.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Grouped bars, so I measured both series: 5.6 px per thousand users, verified against all five tick labels and cross-checked by computing all 12 months and comparing to my visual read. Oct: Americas 42, Europe 95, difference 53.
screenshot-simple✓ pass1m 18s
prompt
Look at the image at (fetch it and view it). What is the total amount shown in the cart panel? Answer with just the total amount, e.g. $12.34.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Read the Total row directly as $85.14 and sanity-checked it against the line totals 18.05 + 32.68 + 34.41 = 85.14.
screenshot-medium✓ pass56s
prompt
Look at the image at (fetch it and view it). What is the total amount shown in the cart panel? Answer with just the total amount, e.g. $12.34.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Read the Total row as $326.92 and verified the sum of the five line totals: 58.76+128.37+58.35+75.68+5.76 = 326.92.
screenshot-complex✓ pass1m 01s
prompt
Look at the image at (fetch it and view it). What is the discount amount shown on this order summary? Answer with just the amount, e.g. $12.34.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
The Discount row reads -$113.14; I verified it arithmetically (665.50 - 113.14 + 15.06 + 38.67 = 606.09). I answered the magnitude $113.14 because the requested format example is a plain positive amount, but the panel itself renders it with a minus sign, so this is the one item where I am unsure of the expected string.
diagram-simple✓ pass1m 13s
prompt
Look at the image at (fetch it and view it). This diagram shows named boxes connected by arrows. Which box does the arrow from "Zenith" point to? Answer with just the box name, e.g. Kettle.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Simple three-out-edge diagram; Zenith's only outgoing arrow goes right to Tunnel.
diagram-medium✓ pass27m 38s
prompt
Look at the image at (fetch it and view it). This diagram shows named boxes connected by arrows. Which box does the arrow from "Onyx" point to? Answer with just the box name, e.g. Kettle.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
This took far longer than it should have. I ended up combining several methods: colour-segmenting the boxes, masking them out and rendering the remaining arrow pixels as ASCII at two resolutions, skeletonising to find line endpoints with thickness-based arrowhead detection, and finally viewing 5x/6x zoomed crops. Onyx's single outgoing line leaves its right edge and runs right into the left edge of Summit, where there is a clear arrowhead. The crossing diagonal lines in that gap (from Ridge and from Laurel) made it genuinely hard to tell which arrowhead belonged to which line, which is why I needed the zoomed crop rather than eyeballing the whole diagram.
diagram-complex✓ pass9m 57s
prompt
Look at the image at (fetch it and view it). This diagram shows named boxes connected by arrows. Which box has an arrow pointing to "Marble"? Answer with just the box name, e.g. Kettle.answer
answer hidden on shared reportsgrader · score 1
agent's debrief
Dense 24-node graph with crossing lines, so I segmented the boxes by fill colour, masked them out, and rendered the remaining arrow pixels as ASCII plus 5x zoomed crops around Marble. Two lines come near Marble but only one terminates there: a line leaving Walrus's bottom-right that runs down-right and ends in a clear arrowhead on Marble's top edge. The other line swings past Marble's right side and keeps going down, so it is not an arrow to Marble.
Finding and reading email test
not examined · 0/6 answered
aggregate-1— unanswered—
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai How many messages are marked unread in the archive folder? Answer with just the number.aggregate-2— unanswered—
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai How many messages are marked unread in the inbox folder? Answer with just the number.temporal-1— unanswered—
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai What is the subject of the newest message in the inbox folder? Answer with just the subject line, exactly as shown.temporal-2— unanswered—
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai What is the subject of the oldest message carrying the label "travel"? Answer with just the subject line, exactly as shown.needle-1— unanswered—
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai In the reminder about the Portland Fundamental Analysis Strategy Meeting, what participant code is given for the call-in? Answer with just the number.needle-2— unanswered—
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai In Julieta Sandoval's message about the Muni Bond Ladder, what direct phone number does she give? Answer with just the exact fact as it appears in the message, and nothing else.
Purchasing test
not examined · 0/4 answered
find-product-1— unanswered—
prompt
The store is at abostore.airbench.ai Among products in the **Beauty & Personal Care** category priced at or above **$250** with a rating of at least **4.2**, which has the **lowest price**? The search space is every product in the store's catalog. Answer with just that product's id (the amazon.xx:B0… form).find-product-2— unanswered—
prompt
The store is at abostore.airbench.ai Among products in the **Toys & Games** category priced at or above **$75** with a rating of at least **4.8**, which has the **lowest price**? The search space is every product in the store's catalog. Answer with just that product's id (the amazon.xx:B0… form).purchase-1— unanswered—
prompt
The store is at abostore.airbench.ai Buy exactly 3 units of AmazonBasics Commercial Patio Heater, Stainless Steel and Sable Brown (product id amazon.ae:B07C78V71Q, abostore.airbench.ai/product/amazonbasics-commercial-…) on abostore, completing checkout with a valid payment method. Use the checkout email aidoctor-acf36ed5@aidoctor.test. Answer with just the resulting order id.recover-decline-1— unanswered—
prompt
The store is at abostore.airbench.ai Buy exactly 3 units of Pike Street Wine Corkscrew Opener (product id amazon.ca:B000UD641G, abostore.airbench.ai/product/pike-street-wine-corkscr…) on abostore. First attempt checkout with a card number ending in 0000 — this payment will be declined. Then retry checkout with a different, valid card and complete the purchase successfully. Use the same checkout email aidoctor-1a45bd64@aidoctor.test for both attempts. Answer with just the order id of the successful (approved) order.
Coding test
not examined · 0/11 answered
compute-hash-1— unanswered—
prompt
Write and run a short program to compute this exactly. Use unsigned 32-bit arithmetic modulo 2^32 throughout. Define rotl32(z, r) = ((z << r) | (z >> (32 - r))) mod 2^32, and let imul(a, b) mean 32-bit multiplication modulo 2^32. Start with data = [804447977, 110021694, 3918998743, 109824644, 2836211029, 1979359386, 3656788963, 1914978304, 755056641, 874286646, 2990138671, 1263977660], x = 4009755373, y = 1882640658 and rounds = 25000. For each step from 0 to rounds - 1 apply: x = (imul(x XOR data[step % 12] XOR step, 2654435761) + rotl32(y, 5)) mod 2^32; y = (imul(y + data[(step + 7) % 12] + step, 1597334677) XOR rotl32(x, 11)) mod 2^32; x = (x + rotl32(y XOR step, 3)) mod 2^32. Return the final value as two lowercase 8-digit hex words joined by a hyphen, like 1a2b3c4d-55667788.compute-vm-1— unanswered—
prompt
Write and run a program to execute this tiny machine exactly. It has four registers a, b, c, d, all starting at 0, and a program counter starting at line 0. `set r n` sets r to n. `add r x`, `sub r x` and `mul r x` combine r with x (a register name or an integer), then reduce r modulo 1000003 into the range 0..1000002. `dec r` subtracts 1 from r. `jnz r k` jumps k lines (relative; k may be negative) if r is not 0. `halt` stops. Every other instruction moves to the next line. 0: set a 944 1: set b 490 2: set c 219 3: set d 585 4: sub b a 5: add b a 6: add b a 7: dec d 8: jnz d -4 9: sub a 87 10: dec c 11: jnz c -8 12: halt Respond with just the final value of register a.compute-paths-1— unanswered—
prompt
Here is a grid of 25 rows and 25 columns. S is the top-left start, E is the bottom-right end, # is a wall and . is open. You may move up, down, left or right onto any non-wall cell. Find the length of the shortest path from S to E (the number of moves) and the number of distinct shortest paths modulo 1000000007. Write a program; this is not meant to be done by eye. S......................#. ..##..##...#........###.# .....#...#.##..#........# ....#.#......#.#.#....... #..##.#...#.##.###......# ..#.##..#.....#...##.#.## .#....#....#..#.......... #......#.##..#..#..#..... ........#..#....#.#...... ..#.##...#.##.#.#........ .#.##...#....#...#.#..##. .#..#............#.###... ....#......#..#.#.#...#.. ...#....#..#..#...#..#.#. #...##.#..#..#.......#.#. .#..#.####.#......#..#... .......###.##.#......#..# #.#......#....#...#.#.##. ...#.......##.......#.#.. ......#..#...#.#.......#. ...##..#....#......#...## ...#.#....##.#.#..#....## ..#........#..###......#. ...####....#.#........... ....#....##..#.....###..E Respond with the two integers separated by a space, like `52 1840`.compute-life-1— unanswered—
prompt
Simulate Conway's Game of Life on a 20x20 grid that wraps around at every edge (a torus). # is alive and . is dead. A live cell with 2 or 3 live neighbours (out of its 8) stays alive; a dead cell with exactly 3 live neighbours becomes alive; every other cell is dead in the next generation. Starting grid, row 0 first: .#...##.##.#..#....# #......#...#.##.#... ...#.##.#.##...#..#. ..#......#.###.#..#. ...##.....#.###.#.#. ..#.#............##. .##...#..#.#.#.#.... ...##...##.......... ...###...#..#....##. ...#.##...#.##..#.#. ....###.##...##..#.# ......#.###.#....... .#.#..##..###.##.#.# ...##..#.###......## ..#.#.#......#.#.... .#..#..#......##..#. ...###.##.#..##...#. ..##.........#.####. ##.#.....##..###.... ..#..##........##... Run 150 generations. Report the number of live cells and the sum of row*20+column over all live cells (rows and columns numbered from 0). Respond as live:sum, like `37:7421`.compute-fibmod-1— unanswered—
prompt
Let F(0) = 0, F(1) = 1 and F(k) = F(k-1) + F(k-2). Compute F(n) mod m exactly for n = 1075101103982888 and m = 2750159. Respond with just the integer.compute-words-1— unanswered—
prompt
Below is a text. Words are separated by spaces. Ignore letter case, and strip any punctuation or quote characters attached to a word. Count how often each word occurs, then report the 3 most frequent words, most frequent first, breaking ties alphabetically. Respond exactly as word=count,word=count,word=count. quilu dorka nixtru Dorti movo "DORKA" lusha moqui zanfic lusha Lumo volu nixqui "zanbas" QUIVO Quivo dorti moti zanbas. basdor; dormo zanbas? lunix quitru lumo; dormo? Lunix dorti lusha Quivo luren lumo tivo dorti BASFIC basdor. tiren basdor lusha lusha Dorti basdor quitru nixtru! luren dormo movo VOQUI basdor lunix volu; Lunix Basdor lusha tivo BASDOR Voka volu renka basdor kaqui; VOLU quivo zandor voqui lumo Volu Renka pelzan tivo Quitru! basdor basdor lusha, zanfic dormo nixqui lunix Nixqui tivo! basdor voka Quilu Voka basdor quilu Renti Renka moqui renti renka dorti quilu dormo! Tivo lusha lusha movo zandor; dormo movo Moti Zandor basdor basdor lumo zanbas Nixqui moqui dormo luren Dormo Renka movo "renti" luren dorti "lusha" Lunix Dorka luren quitru ficti nixqui zandor KAQUI volu movo basdor lunix quitru volu dormo basdor voqui basdor Dorka Tivo movo volu VOLU quivo Zanfic, zanbas quitru "nixtru" "renka" renka quilu kaqui quivo "voqui" ficti Basdor renka quitru quivo renka moti ficti Dorka renti Quitru? basfic quitru movo lusha movo zandor dorti luren lunix nixqui renti moti; quitru basfic dorka Voqui basdor Lusha tiren BASFIC "quivo" moti Lusha Zanbas basdor voqui Quivo nixqui, zanbas tivo "voqui" nixqui basdor tiren kaqui. luren VOLU basfic Nixqui; quilu movo "Basdor" nixqui moti tivo, "movo" MOQUI moqui lumo quitru Basdor, Basdor Moqui Quilu basdor quilu NIXQUI zanbas. basdor zanfic Volu lusha dorti Dormo! "Quivo" dormo dorka nixqui quivo nixqui Movo dorka lusha! "kaqui" quilu zandor Basdor, Basdor renti quivo basdor NIXQUI Tiren Basdor! nixtru lumo Zanbas dorka Quitru tivo basfic movo tivo, basdor zanfic? DORTI zandor lunix nixqui Tiren nixqui dorti basfic dormo nixqui renka zanfic moti; Zanbas voqui quilu dorti "Pelzan" tivo "nixtru" Quilu; Dorti pelzan basdor quilu Quilu "luren" quivo Basdor volu Lusha Lusha renka! nixtru! LUSHA, BASDOR PELZAN nixqui lusha "dorka" Dormo Nixqui lumo? moti volu tivo? BASDOR lusha Quivo quivo. lunix zandor zandor; nixqui lumo dorti basdor basfic renka, renka zanbas Quivo quivo, tivo, quivo dorti nixqui zanbas dorka dorti; VOQUI QUIVO Nixqui moqui basdor; Moti Dorka basdor Basdor? lusha basdor basdor movo quitru lusha zandor dorka! quitru quilu Nixqui volu lumo Zandor nixqui pelzan zandor dorka ZANDOR moti dorti zanfic basdor basdor. Quilu zandor Lumo! nixqui "dorka" Nixqui kaqui voka Nixqui; VOLU kaqui basdor nixqui nixtru dorka lusha "lumo" basdor renka nixqui quilu zanbas voka quilu; lusha Nixtru voqui quivo "basfic" luren! quilu Renti renka, lusha voqui NIXQUI zandor basdor luren pelzan Voka luren nixqui Lumo zandor? Renka basdor, movo Basdor! lusha renka volu Quilu lunix quitru Nixqui? quilu nixqui basdortrace-1— unanswered—
prompt
What exactly does this JavaScript program print? Respond with just the printed output. const v1 = ["10" < "2", "1" == 1, null >= 0].map(Number).join(""); const v2fns = []; for (var v2i = 0; v2i < 3; v2i++) v2fns.push(() => v2i * 4); let v2 = 0; for (const f of v2fns) v2 += f(); const v3 = [typeof null, typeof [], typeof typeof 7].join("/"); const v4arr = [2, 5]; v4arr[9] = 1; const v4 = v4arr.length + ":" + v4arr.filter(() => true).length; console.log(v1, v2, v3, v4);fix-1— unanswered—
prompt
Our shipping quote function below has one bug. Bug report: this order is quoted 5444 cents, but the correct quote is 5445: {"country":"AU","items":[{"grams":1855,"qty":1,"price":7600,"fragile":true}],"express":true} Fix the bug without changing any other behaviour, then run the fixed quote() on each of the 20 orders below, in order. Respond with just the 20 results separated by commas. const ZONES = { FR: 1, DE: 1, ES: 1, IT: 1, GB: 2, US: 2, CA: 2, JP: 3, BR: 3, AU: 3 }; // any other country is zone 4 const BASE = [0, 427, 712, 1270, 1771]; // cents, by zone const PER_STEP = [0, 61, 122, 181, 248]; // cents per 250 g step, by zone const FREE_BASE_OVER = [0, 4600, 8900, 18700, Infinity]; // order value (cents) that waives the base fee function quote(order) { const zone = ZONES[order.country] ?? 4; let grams = 0; let value = 0; let fragile = 0; for (const item of order.items) { grams += item.grams * item.qty; value += item.price * item.qty; if (item.fragile) fragile += item.qty; } const steps = Math.max(1, Math.ceil(grams / 250)); let cents = PER_STEP[zone] * steps; if (value < FREE_BASE_OVER[zone] || order.express) cents += BASE[zone]; cents += Math.min(fragile, 3) * (120 + 35 * zone); if (order.express) cents = Math.floor((cents * (zone <= 2 ? 150 : 185)) / 100); if (order.coupon === "SHIP10") cents -= Math.min(cents >> 3, 500); return Math.max(cents, 99); } Orders: {"country":"IT","items":[{"grams":1718,"qty":1,"price":5094,"fragile":false}],"express":true} {"country":"ZA","items":[{"grams":1307,"qty":4,"price":4821,"fragile":false},{"grams":1783,"qty":4,"price":5617,"fragile":false}]} {"country":"GB","items":[{"grams":2627,"qty":1,"price":7401,"fragile":false}],"express":true} {"country":"CA","items":[{"grams":1378,"qty":5,"price":2219,"fragile":false}]} {"country":"CA","items":[{"grams":715,"qty":3,"price":618,"fragile":true},{"grams":1269,"qty":1,"price":4242,"fragile":false},{"grams":371,"qty":3,"price":5894,"fragile":true}],"express":true} {"country":"BR","items":[{"grams":1863,"qty":1,"price":2290,"fragile":false}],"express":true} {"country":"CA","items":[{"grams":807,"qty":2,"price":7098,"fragile":false},{"grams":636,"qty":1,"price":1866,"fragile":false},{"grams":844,"qty":1,"price":2201,"fragile":false},{"grams":1331,"qty":2,"price":5262,"fragile":false}],"express":true} {"country":"US","items":[{"grams":861,"qty":1,"price":1486,"fragile":false},{"grams":1326,"qty":2,"price":5685,"fragile":false},{"grams":647,"qty":1,"price":4072,"fragile":false}]} {"country":"CA","items":[{"grams":1199,"qty":3,"price":2260,"fragile":true},{"grams":238,"qty":2,"price":7607,"fragile":true},{"grams":133,"qty":2,"price":6838,"fragile":true}],"coupon":"SHIP10"} {"country":"AU","items":[{"grams":1091,"qty":1,"price":3785,"fragile":false},{"grams":788,"qty":1,"price":5905,"fragile":true},{"grams":1196,"qty":2,"price":7907,"fragile":false},{"grams":954,"qty":1,"price":4683,"fragile":false}],"express":true} {"country":"MX","items":[{"grams":808,"qty":5,"price":1915,"fragile":false}],"express":true} {"country":"GB","items":[{"grams":2704,"qty":1,"price":7560,"fragile":false}],"express":true} {"country":"IT","items":[{"grams":1265,"qty":1,"price":691,"fragile":true}],"express":true} {"country":"FR","items":[{"grams":1339,"qty":1,"price":8385,"fragile":false}],"express":true} {"country":"AU","items":[{"grams":1658,"qty":4,"price":613,"fragile":false},{"grams":1235,"qty":1,"price":6323,"fragile":true}],"express":true} {"country":"US","items":[{"grams":1164,"qty":4,"price":5089,"fragile":false},{"grams":798,"qty":1,"price":5714,"fragile":true}]} {"country":"GB","items":[{"grams":741,"qty":1,"price":4376,"fragile":false},{"grams":1262,"qty":2,"price":1154,"fragile":true},{"grams":959,"qty":3,"price":3927,"fragile":true},{"grams":433,"qty":1,"price":4196,"fragile":true}],"coupon":"SHIP10"} {"country":"IT","items":[{"grams":724,"qty":1,"price":1193,"fragile":false}],"express":true} {"country":"JP","items":[{"grams":1057,"qty":1,"price":5505,"fragile":false},{"grams":1187,"qty":4,"price":3750,"fragile":false},{"grams":539,"qty":5,"price":4976,"fragile":false}]} {"country":"AU","items":[{"grams":758,"qty":1,"price":2693,"fragile":false},{"grams":1279,"qty":2,"price":5970,"fragile":false}],"express":true,"coupon":"SHIP10"}implement-1— unanswered—
prompt
Write a function mergeIntervals(intervals). Each interval is a pair [start, end] of integers with start <= end, and includes both ends. It returns the intervals with every overlapping or touching pair merged (so [1, 3] and [3, 5] become [1, 5], but [1, 2] and [3, 4] stay apart), sorted by start. The input may be in any order. Run it on each of the 12 inputs below and respond with one line per input: the result as JSON, like [[1,5],[8,10]]. Spaces are ignored. [] [[1,3],[3,5]] [[1,2],[3,4]] [[5,9],[1,10]] [[30,32],[25,27],[32,34],[27,31],[38,40],[18,26]] [[7,10],[29,35],[20,23],[2,7],[21,22],[14,18],[32,35],[39,45]] [[8,15],[0,3],[39,45],[4,7]] [[4,5],[27,33],[28,28],[39,47],[16,23]] [[40,47],[31,36],[17,22],[7,10]] [[11,17],[0,6],[17,23],[25,30],[5,8],[25,27],[38,41]] [[39,47],[4,4],[13,13]] [[25,30],[21,25],[31,32],[18,23],[20,28]]repo-1— unanswered—
prompt
Download airbench.ai/f/381a29fdd26ff77579afbffb15b441d3.zip and unzip it. It contains a small Python project (Python 3.10 or newer, standard library only) with a bug. Find and fix it, then run `python main.py data/real.csv` inside the project folder and respond with just the 8-character code it prints.repo-2— unanswered—
prompt
Download airbench.ai/f/5d271eb4ef23c6f4925f1c9a7b66ce4d.zip and unzip it. It contains a small Python project (Python 3.10 or newer, standard library only) with bugs. Find and fix them, then run `python main.py data/real.csv` inside the project folder and respond with just the 8-character code it prints.
discussion
Sign in to join the discussion
No messages yet.