Benchmark v1.0 · report
Unsloth-Inking-2-Mini-IsValorum

setup
- model type
- open model (local)
- GPU
- not given
- harness
- unsloth desktop app
- model
- isvalorum-inkling-2-mini-Miniplus
- VRAM
- 24 GB
- RAM
- 64 GB
- inference engine
- unsloth llama.cpp
partial run · 10 unanswered, counted against the score
tests
Math test
8/9 passed
letter-count-1✓ pass1m 12s
prompt
How many times does the letter "r" appear in "rdorpelkra"? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Simple character count; checked with a script, found 3 r's.
decimal-compare-1✓ pass5s
prompt
Which decimal number is larger, 6.5 or 6.71? Answer with just the larger number.answer
answer hidden on shared reportsagent's debrief
6.71 > 6.5.
arithmetic-1✓ pass6s
prompt
Compute step by step, left to right (no operator precedence): 19 * 8 / 4 + 19 - 10. Answer with just the final number.answer
answer hidden on shared reportsagent's debrief
Left-to-right: 19*8=152, /4=38, +19=57, -10=47.
unit-convert-1✕ fail6s
prompt
Convert 19 GB to MB. Now treat that resulting number as a fresh quantity of km and convert it to m (1 km = 1000 m). Answer with just the final integer number of m.answer
answer hidden on shared reportsagent's debrief
19 GB x 1024 = 19456 MB, treated as 19456 km, x 1000 = 19456000 m. Used binary convention; could be 19000000 with decimal.
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 "4181". "checksum" must be a JSON number (not a string) equal to the sum of the digits of 4181. Example shape: {"answer":"1234","checksum":10}answer
answer hidden on shared reportsagent's debrief
JSON object with answer then checksum 14 (4+1+8+1).
math-add-1✓ pass5s
prompt
What is 16 + 7? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Trivial.
math-sum-1✓ pass5s
prompt
Compute the exact sum of 761 + 228. Respond with just the integer.answer
answer hidden on shared reportsagent's debrief
761+228=989.
math-expression-1✓ pass6s
prompt
Evaluate this expression exactly and respond with just the integer: ((-15 + -8) * (6 - 5)) + (-6 * -1) - 39answer
answer hidden on shared reportsagent's debrief
(-23*1)+6-39=-56.
math-determinant-1✓ pass6s
prompt
Compute the exact determinant of this 4x4 matrix. Respond with just the integer. [12, -2, 5, -7] [-5, 9, -8, 6] [6, -8, 3, -6] [0, 9, 6, 6]answer
answer hidden on shared reportsagent's debrief
4x4 determinant computed via numpy, -1341.0.
Vision test
18/19 passed
acuity-20✓ pass2m 26s
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 reportsagent's debrief
Row 4 group 1 read clearly as MBD2K.
acuity-14✓ pass16s
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 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 reportsagent's debrief
Row 5 group 2 read as BV66F.
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 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 reportsagent's debrief
Row 6 group 3 as ZK2YF.
acuity-8✓ pass27s
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 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 reportsagent's debrief
Zoomed into the tiny row 7 group 3; QRPWT.
count-simple✓ pass14s
prompt
Look at the image at (fetch it and view it). How many orange diamonds are in the image? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Counted 5 orange diamonds.
count-medium✓ pass29s
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 reportsagent's debrief
Counted 13 orange circles, excluding squares/triangles/diamonds.
count-complex✓ pass4m 09s
prompt
Look at the image at (fetch it and view it). How many purple triangles are in the image? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Counted programmatically: 32 purple 1012-px components minus 3 purple diamonds (corner-empty fill test) = 29 purple triangles.
spatial-simple✓ pass18s
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 reportsagent's debrief
Red circle clearly at row 4 column 4.
spatial-medium✓ pass52s
prompt
Look at the image at (fetch it and view it). Which shape does the arrow from the red triangle lead to? Answer with just the colour and shape, e.g. teal diamond.answer
answer hidden on shared reportsagent's debrief
Traced the arrow leaving the red triangle down-left to the teal square (bottom-left cell).
spatial-complex✓ pass22m 19s
prompt
Look at the image at (fetch it and view it). Which shape is 2 steps before the orange diamond along the arrows? Answer with just the colour and shape, e.g. teal diamond.answer
answer hidden on shared reportsagent's debrief
Traced the chain programmatically and visually: blue diamond (r3c6) -> green diamond (r5c5) via comp 13, green diamond -> orange diamond (r4c2) via comp 16, orange diamond -> teal circle (r3c5) via comp 12. So 2 steps before the orange diamond is the blue diamond.
chart-simple✓ pass3m 29s
prompt
Look at the image at (fetch it and view it). Using the "Website Sessions" chart, approximately what value did Apr have? Read it off the y-axis; answers within +/-5 are accepted.answer
answer hidden on shared reportsagent's debrief
Measured gridlines at 100px per 10 units; Apr bar top at y=550 ? ~7 thousand sessions.
chart-medium✓ pass34s
prompt
Look at the image at (fetch it and view it). Using the "Server Incidents" chart, approximately what value did Mar have? Read it off the y-axis; answers within +/-5 are accepted.answer
answer hidden on shared reportsagent's debrief
Measured gridlines (100 at y=119.5, 0 at y=659): Mar bar top y=164 -> ~92 incidents.
chart-complex✓ pass1m 25s
prompt
Look at the image at (fetch it and view it). Using the "Website Sessions" chart, approximately what value did Desktop have in Oct? Read it off the y-axis; answers within +/-3 are accepted.answer
answer hidden on shared reportsagent's debrief
Desktop (orange) bar for Oct at x~1177, top y=221 with baseline y=679.5 and 5.6px/unit -> ~82 thousand sessions.
screenshot-simple✓ pass1m 40s
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 reportsagent's debrief
Cart panel shows Laptop Sleeve x2 $69.18 + Ballpoint Pen x1 $17.95 + Phone Stand x3 $101.88 = $189.01, matching the printed Total.
screenshot-medium✓ pass20s
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 reportsagent's debrief
Cart items sum: 76.68+48.42+34.82+145.08+87.32 = 392.32, matching the printed Total.
screenshot-complex✓ pass18s
prompt
Look at the image at (fetch it and view it). What is the tax amount shown on this order summary? Answer with just the amount, e.g. $12.34.answer
answer hidden on shared reportsagent's debrief
Order summary lists Tax = $40.44; it checks out (subtotal 664.09 - discount 86.33 + shipping 10.79 + tax 40.44 = 628.99).
diagram-simple✓ pass35s
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 "Carrot" point to? Answer with just the box name, e.g. Kettle.answer
answer hidden on shared reportsagent's debrief
Opal branches to Garnet and Carrot; Garnet points to Piano and Carrot points to Pepper.
diagram-medium✓ pass10s
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 "Cello"? Answer with just the box name, e.g. Kettle.answer
answer hidden on shared reportsagent's debrief
Summit has an arrow going up-right to Cello with its arrowhead at Cello left edge. No other box points to Cello.
diagram-complex✕ fail2m 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 "Donkey"? Answer with just the box name, e.g. Kettle.answer
answer hidden on shared reportsgrader
expected Tuba, got "Hyena"
agent's debrief
The edge labeled "no" descends from Cobalt and its arrowhead lands on the top edge of Hyena.
Finding and reading email test
6/6 passed
aggregate-1✓ pass1h 13m
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai How many messages in the mailbox are dated during October 2001? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Counted October 2001 messages across the whole mailbox (all 178 messages) via the embedded JSON: page-by-page scan shows 8 (5 on Oct 30, 3 on Oct 29). The inbox view also gives 8, consistent.
aggregate-2✓ pass11s
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai How many messages in the sent folder have attachments? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
All sent messages across 3 pages carry a hasAttachments flag; counted 14 (p1) + 3 (p2) + 0 (p3) = 17. Nice � the data is embedded as JSON in the page rather than needing a browser.
temporal-1✓ pass11s
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai What is the subject of the oldest message in the sent folder? Answer with just the subject line, exactly as shown.answer
answer hidden on shared reportsagent's debrief
Newest-first pagination of the sent folder: the final page holds 2001-11-13 x3, 2001-11-12 x2 and 2001-11-07 x1, so the oldest sent message is the single 2001-11-07 item, subject RE: Interface Design Update.
temporal-2✓ pass43s
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.answer
answer hidden on shared reportsagent's debrief
Inbox sorted newest first: top item is 2001-11-16 20:22 (Mery L Brown), the other Nov 16 item is 18:07 (Whalley Greg). Subject sought: Summary of Today's Meeting.
needle-1✓ pass21s
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai In the message with the subject "FW: Mid C New deals Sept 24", what net value to book is given for the new deals? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Read the full message via its ?id= page: Net value to book = $89,566 (new deal value $(3,552,534) plus liquidations $3,642,100).
needle-2✓ pass2s
prompt
You are examining a mailbox: Phillip Allen's mail at enronmail.airbench.ai In the message to gthorse@keyad.com about the Regatta, Sea Breeze & Harvard Place Apartments delivery, what is the airbill number given for the overnight shipment? Answer with just the number.answer
answer hidden on shared reportsagent's debrief
Read the Regatta/Sea Breeze/Harvard Place message (page=2 link): delivery 10:30 am Nov 29 via Lone Star Overnight, Airbill # 22146964.
Purchasing test
3/4 passed
find-product-1✕ fail1h 31m
prompt
The store is at abostore.airbench.ai Among products in the **Kitchen & Dining** category priced at or above **$500** with a rating of at least **3.5**, 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).answer
answer hidden on shared reportsagent's debrief
Scanned Kitchen & Dining sorted price-asc (rating filter appears to be client-side only, so I double-checked each rating). First product >= $500 (price 735.14, rating 5.0): Solimo 24 Ct French Roast Coffee Pods, id amazon.com/go:B07GG87XDN.
find-product-2✓ passbatched
prompt
The store is at abostore.airbench.ai Among products in the **Grocery & Gourmet** category priced at or above **$100** 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).answer
answer hidden on shared reportsagent's debrief
Grocery & Gourmet sorted price-asc, rating >= 4.8 double-checked: 102.99 (rating 4.8) dishwasher rinse aid is the first >= $100. Earlier items are all < $100 or rating < 4.8.
purchase-1✓ pass21m 25s
prompt
The store is at abostore.airbench.ai Buy exactly 3 units of Amazon Brand - Solimo Variety Pack Drink Mix Singles (32 Packets) (product id amazon.com.au:B07HHKWDS1, abostore.airbench.ai/product/amazon-brand-solimo-vari…) on abostore, completing checkout with a valid payment method. Use the checkout email aidoctor-f707dc4f@aidoctor.test. Answer with just the resulting order id.answer
answer hidden on shared reportsgrader
trace:product_view>cart_add>checkout_view>checkout_submit>checkout_result>order_success_view
note
Store events recorded for this order's session: product_view → cart_add → checkout_view → checkout_submit → checkout_result → order_success_view (recorded by the store; not verified as agent-driven).agent's debrief
Purchased 3 units of the Solimo variety pack via the store's checkout (pre-filled valid card 4242 4242 4242 4242, expiry 12/30, CVC 123). Order page confirms approved, qty 3, $79.38 subtotal, total $94.88.
recover-decline-1✓ pass2m 27s
prompt
The store is at abostore.airbench.ai Buy exactly 3 units of AmazonBasics Wireless Mouse with Nano Receiver and Mini Gaming Mouse Pad, Purple (product id amazon.com:B07535PTMZ, abostore.airbench.ai/product/amazonbasics-wireless-mo…) 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-435d2af5@aidoctor.test for both attempts. Answer with just the order id of the successful (approved) order.answer
answer hidden on shared reportsgrader
trace:product_view>cart_add>checkout_view>checkout_result>checkout_submit>checkout_submit>checkout_result>order_success_view
note
Store events recorded for this order's session: product_view → cart_add → checkout_view → checkout_result → checkout_submit → checkout_submit → checkout_result → order_success_view (recorded by the store; not verified as agent-driven).agent's debrief
First checkout with a card ending in 0000 was declined (order abs_e82a78e7ca32 shows DECLINED). Retried with the valid card 4242 4242 4242 4242 — approved, order abs_3b74b8431fea, qty 3, $2,396.28 subtotal, total $2,602.92.
Coding test
1/11 passed · 10 unanswered
compute-hash-1✓ pass1h 56m
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 = [3154589701, 3612483338, 2365159699, 3593984752, 1185248177, 1723523494, 801983327, 1356696748, 1597147037, 1694099842, 2794910699, 657463720], x = 1909882825, y = 2718020254 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.answer
answer hidden on shared reportsagent's debrief
Implemented the exact spec in Python (25k rounds, 32-bit unsigned arithmetic) and got 3fddc6f7-b99a85a9.
compute-vm-1⏱ too late8m 58s
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 287 1: set b 66 2: set c 236 3: set d 430 4: sub b a 5: add b a 6: sub a 28 7: dec d 8: jnz d -4 9: sub a 54 10: dec c 11: jnz c -8 12: halt Respond with just the final value of register a.answer
answer hidden on shared reportsagent's debrief
Simulated the VM with modulo 1000003; used two independent implementations that agreed. Final register a = 146112.
compute-paths-1⏱ too late2m 28s
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`.answer
answer hidden on shared reportsagent's debrief
BFS for shortest path length (48 moves) and dynamic counting of shortest paths (mod 1e9+7) gave 48 2390560.
compute-life-1⏱ too late3m 10s
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`.answer
answer hidden on shared reportsagent's debrief
Simulated 150 generations on the torus grid; 72 live cells, sum of row*20+col = 12622.
compute-fibmod-1⏱ too late53s
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 = 6783547693467699 and m = 999983. Respond with just the integer.answer
answer hidden on shared reportsagent's debrief
Fast doubling with mod 999983; sanity-checked against iterative for small n; F(6783547693467699) = 263867.
compute-words-1⏱ too late44s
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. ficdor shalu Trupel shati nixvo dorka renlu ficzan, dorka volu renbas quiti ficdor ficdor Pelren quiti Ficdor titru quiti kamo trupel? truvo vomo? ficdor Fictru Titru ficdor renbas? ficzan shati volu dorka volu ficdor rentru Trupel lusha? pelren shalu. Volu trupel ZANKA vomo FICTRU Dorka; Zantru katru Truren! quiti RENLU basvo volu pelren shalu Kamo dorka ficdor. Vomo titru nixvo Ficdor dorka basvo dormo Pelren nixvo titru Renbas FICDOR kamo shati fictru katru dorfic shalu? renbas Ficdor FICDOR trutru shalu ficdor shalu titru truvo Truren truvo ficzan titru renbas rentru ficdor dorka Titru, dorfic shalu shati volu ficzan "dorka" shati dorka renlu Vomo zantru dorfic kamo trutru trupel shalu truren Quiti? ficdor zantru shalu. fictru! titru. renbas? truvo "dormo" Vomo Renbas. Fictru, quiti shati Vomo Basbas "Shalu" renbas; Shalu zantru VOREN nixvo kamo shalu lusha trutru shalu ficdor titru titru Renlu Volu basbas! renbas dormo ficdor Shati dormo, pelren trutru trutru nixpel zanka VOMO nixpel kamo truvo ficdor ficdor ficdor renbas basbas truren! zantru shalu dormo Dormo nixvo Ficdor truren Renbas renbas, basvo zantru Quiti shati pelren trutru ficdor? Shalu? shalu shalu FICDOR Quiti. trutru dorka "lusha" dorka truvo renbas TRUPEL ficdor; RENTRU rentru pelren Dorka "Renlu" basvo "dormo" shati, kamo Ficzan truren vomo shalu Truvo pelren ficdor SHATI Renbas Basvo truvo Shati. shalu dormo voren! vomo ficzan zanka quiti ficdor ficzan Voren dormo renbas shalu ficdor ficzan ficdor dormo ficdor, renbas Lusha shati ficdor truvo Voren fictru shati pelren shati Vomo katru vomo nixvo titru basbas nixpel renbas shati Quiti PELREN nixvo shati quiti! shati? trutru Shalu. ficdor dorka Dorka "renlu" truren Zantru truvo; "ficdor" dorfic DORMO basbas. basbas shalu "dorka" ficzan dorfic trupel ficdor kamo shalu nixpel renlu vomo Basvo Titru Titru Vomo katru "shati" truvo volu SHALU truren basvo trupel Fictru Ficdor Renbas Nixpel Ficzan titru Pelren ficdor, trutru, shati Dormo Ficdor Shati Shati zanka lusha vomo renlu trupel "zanka" renlu shalu shati? basvo ficdor Lusha ficdor Rentru SHATI renlu! Trupel trupel voren Voren basbas zantru nixpel zantru Shati kamo. Renlu fictru "PELREN" Zanka, dorfic Vomo vomo Truren zantru! RENBAS shati zantru pelren renlu titru "ficdor" Nixvo Voren dorka voren dorka zanka trupel Trutru truren Renlu! basvo Renbas renlu trutru basvo shalu voren. voren PELREN katru voren basbas shalu kamo voren LUSHA shalu Dorfic shati Volu Vomo ficdor trutru "Katru" renlu shati zantru dormo volu zantru pelren shati BASBAS shati shati fictru "FICDOR" renbas zantru ficdor basbas, volu truvo PELREN lusha volu kamo Nixvo Shalu ficdor Ficdor lusha titru trupel RENTRU; ZANTRU "ficzan" shati katru renbas Shatianswer
answer hidden on shared reportsagent's debrief
Counted case-insensitively, stripping punctuation; top-3: ficdor=44, shati=32, shalu=29.
trace-1— unanswered—
prompt
What exactly does this JavaScript program print? Respond with just the printed output. const v1 = [null >= 0, "2" == 2, null == 0].map(Number).join(""); const v2fns = []; for (var v2i = 0; v2i < 2; v2i++) v2fns.push(() => v2i * 7); let v2 = 0; for (const f of v2fns) v2 += f(); const v3 = (0.1 * 7 + 0.2 * 7 === 0.3 * 7) ? "equal" : "different"; const v4arr = [1, 9]; v4arr[6] = 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 246 cents, but the correct quote is 820: {"country":"IT","items":[{"grams":625,"qty":4,"price":2251,"fragile":false}]} 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, 475, 876, 1345, 1642]; // cents, by zone const PER_STEP = [0, 82, 116, 212, 268]; // cents per 250 g step, by zone const FREE_BASE_OVER = [0, 5200, 11600, 18000, 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; 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.ceil((cents * (zone <= 2 ? 150 : 185)) / 100); if (order.coupon === "SHIP10") cents -= Math.min(cents >> 3, 500); return Math.max(cents, 99); } Orders: {"country":"ES","items":[{"grams":204,"qty":3,"price":863,"fragile":false}]} {"country":"BR","items":[{"grams":400,"qty":5,"price":3978,"fragile":false},{"grams":669,"qty":1,"price":6687,"fragile":false}],"express":true} {"country":"AU","items":[{"grams":670,"qty":1,"price":4577,"fragile":false},{"grams":953,"qty":2,"price":8690,"fragile":true}],"coupon":"SHIP10"} {"country":"IT","items":[{"grams":84,"qty":4,"price":8073,"fragile":true}],"coupon":"SHIP10"} {"country":"FR","items":[{"grams":552,"qty":2,"price":3670,"fragile":false}]} {"country":"BR","items":[{"grams":1005,"qty":1,"price":2225,"fragile":false},{"grams":1527,"qty":2,"price":2582,"fragile":false},{"grams":258,"qty":3,"price":3534,"fragile":false}],"coupon":"SHIP10"} {"country":"GB","items":[{"grams":1514,"qty":1,"price":8501,"fragile":false},{"grams":862,"qty":2,"price":8307,"fragile":true},{"grams":1510,"qty":1,"price":3600,"fragile":true},{"grams":1008,"qty":1,"price":7689,"fragile":false}],"coupon":"SHIP10"} {"country":"DE","items":[{"grams":500,"qty":5,"price":655,"fragile":false}]} {"country":"FR","items":[{"grams":839,"qty":5,"price":453,"fragile":false}]} {"country":"BR","items":[{"grams":397,"qty":4,"price":1065,"fragile":false}]} {"country":"ES","items":[{"grams":613,"qty":4,"price":1141,"fragile":false}]} {"country":"ES","items":[{"grams":1203,"qty":2,"price":3838,"fragile":false},{"grams":907,"qty":2,"price":4676,"fragile":true}]} {"country":"CA","items":[{"grams":975,"qty":1,"price":8146,"fragile":true}]} {"country":"IT","items":[{"grams":1345,"qty":2,"price":4633,"fragile":true}],"express":true,"coupon":"SHIP10"} {"country":"DE","items":[{"grams":1088,"qty":1,"price":888,"fragile":false},{"grams":1692,"qty":3,"price":6734,"fragile":false}],"coupon":"SHIP10"} {"country":"DE","items":[{"grams":1755,"qty":1,"price":2888,"fragile":false},{"grams":401,"qty":1,"price":1207,"fragile":false},{"grams":502,"qty":1,"price":482,"fragile":false}],"coupon":"SHIP10"} {"country":"GB","items":[{"grams":1287,"qty":3,"price":4308,"fragile":true},{"grams":612,"qty":3,"price":7890,"fragile":false}],"express":true} {"country":"FR","items":[{"grams":783,"qty":3,"price":6440,"fragile":false},{"grams":330,"qty":1,"price":6977,"fragile":false},{"grams":1722,"qty":3,"price":7988,"fragile":false}]} {"country":"US","items":[{"grams":305,"qty":5,"price":365,"fragile":false}]} {"country":"CA","items":[{"grams":711,"qty":3,"price":2284,"fragile":false}]}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]] [[26,27],[33,34],[4,7],[27,28],[2,3],[37,42]] [[37,44],[23,24],[39,47],[15,21],[22,29],[11,11],[28,31]] [[26,34],[16,20],[21,25],[36,39],[12,15]] [[1,8],[18,18],[28,36],[31,35],[5,6]] [[1,3],[26,28],[38,40],[11,17]] [[40,43],[35,35],[15,23],[30,30],[21,27]] [[33,34],[33,37],[27,32],[17,22],[0,7],[34,36],[8,15]] [[34,37],[7,15],[14,17],[32,36],[38,38],[0,4],[27,35],[7,15]]repo-1— unanswered—
prompt
Download airbench.ai/f/b2006e3a5f17c30f048cd6a093c5d257.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/fde1d94495be1e63dc389c1100ce674e.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
cmr705 Timed Out on coding tasks