mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-28 17:29:39 +00:00
8 lines
No EOL
3.2 KiB
JSON
8 lines
No EOL
3.2 KiB
JSON
{
|
|
"question": "John collects garbage from 3 different apartment complexes. The first two have 200 apartments each and the last one is 60% bigger than the other two combined. He collects garbage 3 times a week from each place and he gets paid $.40 per collection for each apartment. How much money does he make in a week?",
|
|
"answer": "The first two complexes have 200+200=<<200+200=400>>400 apartments\nThe third one has 400*.6=<<400*.6=240>>240 more apartments than those 2 combined\nSo in total, it has 400+240=<<400+240=640>>640 apartments\nSo he goes to 640+400=<<640+400=1040>>1040 apartments each time\nThat means he visits 1040*3=<<1040*3=3120>>3120 apartments every week\nSo he makes 3120*$0.4=$<<3120*0.4=1248>>1248 every week\n#### 1248",
|
|
"id_orig": 1165,
|
|
"id_shuffled": 49,
|
|
"question_annotated": "{name,John} collects garbage from {n,3} different apartment complexes. The first {n_first,2} have {a,200} apartments each and the last one is {p,60}% bigger than the other {n_first,2} combined. {name,John} collects garbage {f,3} times a week from each place and he gets paid {cur,$}{r,0.40} per collection for each apartment. He also earns {tip,10}% on tips. How much money does he make in a week?\n\n#init:\n- name = sample(names_male)\n- cur = sample(currencies_sym)\n- $n = range(3, 8)\n- $n_first = range(2, 7)\n- $a = range(100, 500, 50)\n- $p = range(20, 81, 5)\n- $f = range(2, 6)\n- $r = [0.25, 0.30, 0.35, 0.40, 0.45, 0.50]\n- $tip = range(5, 21)\n\n#conditions:\n- n_first == n-1\n- is_int((n-1)*a*p/100)\n- is_int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (100+tip)/100)\n- int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (100+tip)/100) < 3000\n\n#answer: int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (100+tip)/100)",
|
|
"answer_annotated": "The first {n_first} complexes have {n_first}*{a}=<<{n_first}*{a}={n_first*a}>>{n_first*a} apartments\nThe last one has {p}% more apartments that the first {n_first} combined: {n_first*a}*{p}%=<<{n_first*a}*{(p)/100}={int(n_first*a*(p)/100)}>>{int(n_first*a*(p)/100)} apartments. So the last apartment has, {n_first*a} + {int(n_first*a*(p)/100)} = {int(n_first*a*(100+p)/100)} apartments. \nSo he goes to {n_first*a}+{int(n_first*a*(100+p)/100)}=<<{n_first*a}+{int(n_first*a*(100+p)/100)}>>={int(n_first*a*(2+p/100))} apartments each time.\nThat means he visits {int((n-1)*a + (n-1)*a + (n-1)*a*p/100)}*{f}=<<{(n-1)*a + (n-1)*a + (n-1)*a*p/100}*{f}={((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f}>>{((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f} apartments every week\nSo he makes {((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f}*{cur}{r}={cur}<<{((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f}*{r}={int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)}>>{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)} every week. \nFinally the {tip}% tip will be {cur}{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)} * {tip}% = {cur}{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (tip/100))}. \nSo in total he earns {cur}{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r)}+{cur}{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (tip) / 100)} = {cur}{int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (tip+100)/(100))}\n#### {int(((n-1)*a + (n-1)*a + (n-1)*a*p/100) * f * r * (tip+100)/100)}"
|
|
} |