mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +00:00
8 lines
No EOL
2.4 KiB
JSON
8 lines
No EOL
2.4 KiB
JSON
{
|
|
"question": "A loaf of bread has 24 slices. If Abby can eat 2 slices a day while Josh can eat twice as much, how many days will the loaf of bread last?",
|
|
"answer": "Josh can eat 2 x 2 = <<2*2=4>>4 slices a day.\nTogether, Abby and Josh can eat 2 + 4 = <<2+4=6>>6 slices a day.\nSo, a loaf of bread will last for 24/6 = <<24/6=4>>4 days.\n#### 4",
|
|
"id_orig": 921,
|
|
"id_shuffled": 37,
|
|
"question_annotated": "A giant {item,loaf of bread} has {n,24} {unit,slices}. {name1,Abby} can eat {x,2} {unit,slices} a day while {name2,Josh} can eat {mult,twice} as much and {name3,James} can eat {mult2,twice} as much as {name2,Josh}. After 2 days, {name3,James} decides to go on a diet and cut the consumption by half. How many days will it take for the {item,loaf of bread} to be fully eaten?\n\n#init:\n- item = sample([\"pizza\", \"cake\", \"pie\", \"lasagna\"])\n- unit = sample([\"pieces\", \"portions\", \"servings\"])\n- name1, name2, name3 = sample(names, 3)\n- $n = range(12, 130)\n- $x = range(2, 7)\n- $mult = sample(multiple_ice+multi_times)\n- $mult2 = sample(multiple_ice+multi_times)\n\n#conditions:\n- n > 2*(x+x*mult+x*mult*mult2)\n- divides(x*mult*mult2, 2)\n- divides(n - 2*(x+x*mult+x*mult*mult2), x + x*mult + x*mult*mult2//2)\n\n\n#answer: 2+int((n - 2*(x+x*mult+x*mult*mult2))/(x + x*mult + x*mult*mult2//2))",
|
|
"answer_annotated": "{name2} can eat {x} x {mult} = <<{x}*{mult}={x*mult}>>{x*mult} {unit} a day.\n{name3} can eat {x*mult} x {mult2} = <<{x*mult}*{mult2}={x*mult*mult2}>>{x*mult*mult2} {unit} a day.\nTogether, {name1}, {name2}, and {name3} can eat {x} + {x*mult} + {x*mult*mult2} = <<{x}+{x*mult}+{x*mult*mult2}={x+x*mult+x*mult*mult2}>>{x+x*mult+x*mult*mult2} {unit} a day.\nFor the first 2 days, they will consume 2 * {x+x*mult+x*mult*mult2} = {2*(x+x*mult+x*mult*mult2)} {unit}. So {n} - {2*(x+x*mult+x*mult*mult2)} = {n - 2*(x+x*mult+x*mult*mult2)} remains. \nAfter 2 days, they will consume {x} + {x*mult} + {x*mult*mult2}/2 = {x + x*mult + x*mult*mult2//2} together. So it will take {n - 2*(x+x*mult+x*mult*mult2)} / {x + x*mult + x*mult*mult2//2} = {int((n - 2*(x+x*mult+x*mult*mult2))/(x + x*mult + x*mult*mult2//2))} days more. So overall, it will take 2+{int((n - 2*(x+x*mult+x*mult*mult2))/(x + x*mult + x*mult*mult2//2))} = {2+int((n - 2*(x+x*mult+x*mult*mult2))/(x + x*mult + x*mult*mult2//2))} days to finish the {item}.\n\n#### {2+int((n - 2*(x+x*mult+x*mult*mult2))/(x + x*mult + x*mult*mult2//2))}"
|
|
} |