mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-29 17:35:16 +00:00
8 lines
No EOL
2.7 KiB
JSON
8 lines
No EOL
2.7 KiB
JSON
{
|
|
"question": "Roger goes to the store to buy some coffee. The normal brand of coffee he buys cost $5 per pound. He had to buy a more expensive brand that cost 20% more since his favorite brand was sold out. He decides to buy a week's worth of coffee and he uses 1 pound of coffee per day. He also decided to buy himself a donut for $2. How much did everything cost?",
|
|
"answer": "The coffee he bought was 5*.2=$<<5*.2=1>>1 more expensive per pound than what he normally buys\nSo it cost 5+1=$<<5+1=6>>6 per pound\nHe goes through 1*7=<<1*7=7>>7 pounds of coffee a week\nSo he paid 6*7=$<<6*7=42>>42 on coffee\nThat means his total bill was 42+2=$<<42+2=44>>44\n#### 44",
|
|
"id_orig": 661,
|
|
"id_shuffled": 42,
|
|
"question_annotated": "{name,Roger} goes to the store to buy some {item,coffee}. The normal brand of {item,coffee} he buys costs {cur,$}{price,5} per {unit,pound}. He had to buy a more expensive brand that costs {percent,20}% more since his favorite brand was sold out. He decides to buy a week's worth of {item,coffee} and he uses {usage,1} {unit,pound}s of {item,coffee} per day. He also decided to buy himself a {extra_item,donut} for {cur,$}{extra_price,2}. Since he shopped more than {cur,$}50, he received a {cur,$}{discount,10} discount. How much does {name,Roger} have to pay?\n\n#init:\n- name = sample(names_male)\n- item = sample(['tea', 'sugar', 'flour', 'rice'])\n- cur = sample(currencies_sym)\n- unit = sample(['kilogram', 'kg'])\n- extra_item = sample(['cookie', 'muffin', 'bagel'])\n- $price = range(3, 17)\n- $percent = range(10, 50, 5)\n- $usage = range(2, 4)\n- $extra_price = range(1, 5)\n- $discount = range(5, 25)\n\n#conditions:\n- is_int(price * percent / 100)\n- ((price + price * percent / 100) * 7 * usage + extra_price) > 50\n\n#answer: (price + price * percent / 100) * 7 * usage + extra_price - discount",
|
|
"answer_annotated": "The {item} he bought was {price}*{percent/100}={price*percent//100} more expensive per {unit} than what he normally buys.\nSo it cost {price}+{price*percent//100}={price+price*percent//100} per {unit}\nHe goes through {usage}*7=<<{usage}*7={usage*7}>>{usage*7} {unit}s of {item} a week\nSo he paid {price+price*percent/100}*{usage*7}=<<{price+price*percent/100}*{usage*7}={int((price+price*percent/100)*usage*7)}>>{int((price+price*percent/100)*usage*7)} on {item}\nThat means his total bill was {int((price+price*percent/100)*usage*7)}+{extra_price}={int((price+price*percent/100)*usage*7)+extra_price}.\nHe got {cur}{discount}, so overall he paid {int((price+price*percent/100)*usage*7)+extra_price}-{discount}={int((price+price*percent/100)*usage*7)+extra_price-discount}.\n#### {int((price+price*percent/100)*usage*7)+extra_price-discount}"
|
|
} |