mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +00:00
8 lines
No EOL
2.2 KiB
JSON
8 lines
No EOL
2.2 KiB
JSON
{
|
|
"question": "David has $12.48 and wants to buy 16 bolts from a bin at the hardware store. Each bolt costs $0.03. How much money does David have left after paying for the bolts?",
|
|
"answer": "David paid 16 * 0.03 = $<<16*0.03=0.48>>0.48 for the bolts.\nDavid has $12.48 - $0.48 = $12 left.\n#### 12",
|
|
"id_orig": 873,
|
|
"id_shuffled": 30,
|
|
"question_annotated": "{name,David} has {cur,$}{initial_amount,12.48} and wants to buy {quantity,16} {item,bolt}s from a bin at the {store_type,hardware} store. {name,David} also needs {quantity2,5} {item2,nut}s, each costing {cur,$}{unit_price2,0.05}. Each {item,bolt} costs {cur,$}{unit_price,0.03}. How much money does {name,David} have left after paying for the items?\n\n#init:\n- name = sample(names)\n- cur = sample(currencies_sym)\n- item, item2 = sample([\"screw\", \"nail\", \"washer\", \"nut\", \"anchor\"], 2)\n- store_type = sample([\"hardware\", \"home improvement\", \"construction supply\"])\n- $quantity = range(15, 60)\n- $quantity2 = range(6, 11)\n- $initial_amount = fix_floats(shuffle_list(list(np.arange(75.03, 102, 1.01))))\n- $unit_price = fix_floats(list(np.arange(0.21, 1, 0.01)))\n- $unit_price2 = fix_floats(list(np.arange(0.55, 1, 0.01)))\n\n#conditions:\n- initial_amount > quantity * unit_price + quantity2 * unit_price2\n- int(quantity * unit_price * 1000) % 10 == 0\n- int(quantity2 * unit_price2 * 1000) % 10 == 0\n- is_int((initial_amount - quantity * unit_price - quantity2 * unit_price2))\n\n#answer: int(initial_amount - quantity * unit_price - quantity2 * unit_price2)",
|
|
"answer_annotated": "{name} paid {quantity} * {cur}{round(unit_price,2)} = {cur}<<{quantity}*{round(unit_price,2)}={round(quantity*unit_price,2)}>>{round(quantity*unit_price,2)} for the {item}s.\n{name} paid {quantity2} * {cur}{round(unit_price2,2)} = {cur}<<{quantity2}*{round(unit_price2,2)}={round(quantity2*unit_price2,2)}>>{round(quantity2*unit_price2,2)} for the {item2}s.\n{name} has {cur}{initial_amount} - {cur}{round(quantity*unit_price,2)} - {cur}{round(quantity2*unit_price2,2)} = {cur}{int(initial_amount - quantity * unit_price -quantity2 * unit_price2 )} left.\n#### {int(initial_amount - quantity * unit_price - quantity2 * unit_price2) }"
|
|
} |