mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-29 17:35:16 +00:00
Still experimenting
This commit is contained in:
parent
b0e70008ea
commit
b203353751
357 changed files with 2888 additions and 0 deletions
8
reasoning_gym/data/gsm_data/p2/0018.json
Normal file
8
reasoning_gym/data/gsm_data/p2/0018.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"question": "Raphael went to buy some school supplies. He bought 4 pens which cost $1.5 each, 2 notebooks which cost $4 each, and a rim of bond paper which cost $20. How much did Raphael spend on everything?",
|
||||
"answer": "Raphael spent 4 x $1.5 = $<<4*1.5=6>>6 for the pens.\nHe also spent 2 x $4 = $<<2*4=8>>8 for the notebooks.\nTherefore, Raphael spent a total of $6 + $8 + $20 = $<<6+8+20=34>>34 for the school supplies.\n#### 34",
|
||||
"id_orig": 158,
|
||||
"id_shuffled": 18,
|
||||
"question_annotated": "{name,Raphael} went to buy some school supplies. He bought {n1,4} {obj1,pens} which cost {cur,$}{c1,1.5} each, {n2,2} {obj2,notebooks} which cost {cur,$}{c2,4} each, and a ream of bond paper which cost {cur,$}{c3,20}. He also bought {n4,5} {obj3,folders} which cost {cur,$}{c4,10} each. {name,Raphael} can either pay a one-time {cur,$}20 fee to become a member and get a 20% discount on all purchases, or not become a member and receive only a 5% discount. What is the least amount {name,Raphael} can spend on everything?\n\n\n#init:\n- name = sample(names_male)\n- obj1, obj2, obj3 = sample([\"notebooks\", \"pencils\", \"erasers\", \"crayons\", \"colored pencils\", \"markers\", \"rulers\", \"folders\", \"folders\"], 3)\n- cur = sample(currencies_sym)\n- $n1 = range(6, 25, 2)\n- $c1 = frange(2.25, 11.5, 0.25)\n- $n2 = range(4, 15, 2)\n- $c2 = frange(8.25, 19.5, 0.25)\n- $c3 = range(10, 25)\n- $n4 = range(2, 9)\n- $c4 = range(8, 12)\n\n#conditions:\n- n4 > 2\n- is_int(n1 * c1)\n- is_int(n2 * c2)\n- divides(n1*c1 + n2*c2 + c3+n4*c4, 20)\n- (n1*c1 + n2*c2 + c3+(n4)*c4) * 0.15 > 30\n\n#answer: int((n1*c1 + n2*c2 + c3+n4*c4)*0.8) + 20",
|
||||
"answer_annotated": "{name} spent {n1} x {cur}{c1} = {cur}<<{n1}*{c1}={int(n1*c1)}>>{int(n1*c1)} for the {obj1}.\nHe also spent {n2} x {cur}{c2} = {cur}<<{n2}*{c2}={int(n2*c2)}>>{int(n2*c2)} for the {obj2}.\nTherefore, {name} spent a total of {cur}{int(n1*c1)} + {cur}{int(n2*c2)} + {cur}{c3} = {cur}<<{int(n1*c1)}+{int(n2*c2)}+{c3}={int(n1*c1+n2*c2+c3)}>>{int(n1*c1+n2*c2+c3)} for the school supplies.\nFinally we should include {n4} * {c4} = {(n4 )* c4}. The total will be be {int(n1*c1+n2*c2+c3)+(n4)*c4}\nIf {name} becomes a member he gets 20% discount, which will be {cur}{int(n1*c1+n2*c2+c3)+(n4)*c4} * 20% = {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.2)} discount. He also has to pay {cur}20 so it will be {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.2)} - {cur}20 = {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.2)-20} cheaper.\nIf {name} doesn't become a member, get only gets 5% discount, which will be {cur}{int(n1*c1+n2*c2+c3)+(n4)*c4} * 5% = {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.05)}. Since {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.05)} is smaller than {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.2)-20}, to pay the least, {name} has to become member. \nSo overall he pays {cur}{int(n1*c1+n2*c2+c3)+(n4)*c4} - {cur}{int((n1*c1 + n2*c2 + c3+(n4)*c4)*0.2)-20} = {cur}{ int((n1*c1 + n2*c2 + c3+n4*c4)*0.8) + 20}\n#### {int((n1*c1 + n2*c2 + c3+n4*c4)*0.8) + 20}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue