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": "To make a call from a payphone, you must pay $0.25 for each minute of your call. After 16 minutes, that price drops to $0.2 per minute. How much would a 36-minute call cost?",
|
|
"answer": "First 16 minutes would be a cost of 16 * 0.25 = $<<16*0.25=4>>4.\nAfter that, there are 36 - 16 = <<36-16=20>>20 minutes of the call left.\nAnd these 20 minutes cost 20 * 0.2 = $<<20*0.2=4>>4.\nSo in total, the 36-minute call would cost 4 + 4 = $8.\n#### 8",
|
|
"id_orig": 1223,
|
|
"id_shuffled": 10,
|
|
"question_annotated": "To make a call from a {dev,payphone}, you must pay {currency,$}{frac1,0.25} for each minute of your call. After {t,16} minutes, that price drops to {currency,$}{frac2,0.2} per minute. After {t2,10} minutes from the start of the call, the price drops even more to {currency,$}{frac3,0.5} per two minutes. How much would a {total,36}-minute call cost?\n\n#init:\n- dev = sample(['phone booth', 'hotel room phone'])\n- currency = sample(currencies_sym)\n- $frac1 = sample(fraction_decimals)\n- $frac2 = sample(fraction_decimals)\n- $frac3= sample(fraction_decimals)\n- $t = range(7, 15)\n- $t2 = range(20, 40)\n- $total = range(70, 100)\n\n#conditions:\n- is_int(frac1 * t)\n- is_int((t2-t) * frac2)\n- is_int((total-t2) / 2 * frac3)\n- t + 10 < t2 < total\n- divides(total-t2,2)\n- frac3 < frac2 < frac1\n\n#answer: int((frac1 * t) + frac2*(t2-t) + frac3 * (total-t2) * 0.5 )",
|
|
"answer_annotated": "First {t} minutes would be a cost of {t} * {frac1} = {currency}<<{t}*{frac1}={int(t*frac1)}>>{int(t*frac1)}.\nAfter that, the next {t2} - {t} = <<{t2}-{t}={t2-t}>>{t2-t} minutes of the call will cost {frac2}.\nAnd these {t2-t} minutes cost {t2-t} * {frac2} = {currency}<<{t2-t}*{frac2}={int((t2-t)*frac2)}>>{int((t2-t)*frac2)}.\nThen from {t2} to {total}, there are {total}-{t2}={total-t2} minutes that cost {frac3} per two minutes. Since there are {total-t2} / 2 = {(total-t2)//2} intervals of two minutes, the cost for final part of the call will be {frac3} * {(total-t2)//2} = {int(frac3 * (total-t2) * 0.5 )}.\nOverall the cost is {int(t*frac1)} + {int((t2-t)*frac2)} + {int(frac3 * (total-t2) * 0.5 )} = { int((frac1 * t) + frac2*(t2-t) + frac3 * (total-t2) * 0.5 )}\n#### { int((frac1 * t) + frac2*(t2-t) + frac3 * (total-t2) * 0.5 )}"
|
|
} |