Still experimenting

This commit is contained in:
abdulhakeem 2025-01-30 23:44:12 -06:00
parent b0e70008ea
commit b203353751
357 changed files with 2888 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{
"question": "Prince Thaddeus slew 100 dragons with his mighty sword, while Prince Arthur, using a spear, slew three quarters as many dragons as Prince Thaddeus. Using a rusty iron axe, Prince Walter slew twice as many dragons as Prince Arthur. But Prince Bruce, having forgot his sword at home, slew one-fifth as many dragons as Prince Walter using a nail file. How many Dragons has Prince Bruce slain?",
"answer": "Prince Arthur slew three-quarters as many dragons as Prince Thaddeus, or 100*(3/4)=<<100*(3/4)=75>>75 dragons.\nPrince Walter slew twice as many dragons as Prince Arthur, or 2*75=<<2*75=150>>150 dragons.\nPrince Bruce slew one-fifth as many dragons as Prince Walter, or 150/5=<<150/5=30>>30 dragons.\n#### 30",
"id_orig": 432,
"id_shuffled": 92,
"question_annotated": "{name1} slew {n1} {creature} with his mighty {weapon1}, while {name2}, using a {weapon2}, slew {frac1} as many {creature} as {name1}. Using a {weapon3}, {name3} slew {mult1} as many {creature} as {name2}. But {name4}, having forgotten his {weapon4} at home, slew {frac2} as many {creature} as {name3} using a {weapon5}. How many {creature} has {name4} slain?\n\n#init:\n- name1, name2, name3, name4 = sample(names_male, 4)\n- creature = sample([\"ogres\", \"trolls\", \"goblins\", \"orcs\", \"giants\"])\n- weapon1 = sample([\"sword\", \"mace\", \"battle axe\", \"war hammer\"])\n- weapon2 = sample([\"spear\", \"lance\", \"javelin\", \"halberd\"])\n- weapon3 = sample([\"rusty iron axe\", \"wooden club\", \"stone hammer\", \"bone dagger\"])\n- weapon4 = sample([\"sword\", \"axe\", \"mace\", \"hammer\"])\n- weapon5 = sample([\"nail file\", \"butter knife\", \"wooden spoon\", \"feather\"])\n- $n1 = range(50, 501, 50)\n- $frac1 = sample(fraction_alnum)\n- $mult1 = sample(multi_times)\n- $frac2 = sample(fraction_alnum)\n\n#conditions:\n- is_int(n1 * frac1)\n- is_int(n1 * frac1 * mult1)\n- is_int(n1 * frac1 * mult1 * frac2)\n\n#answer: int(n1 * frac1 * mult1 * frac2)",
"answer_annotated": "{name2} slew {frac1} as many {creature} as {name1}, or {n1}*{frac1}=<<{n1}*{frac1}={int(n1*frac1)}>>{int(n1*frac1)} {creature}.\n{name3} slew {mult1} as many {creature} as {name2}, or {mult1}*{int(n1*frac1)}=<<{mult1}*{int(n1*frac1)}={int(n1*frac1*mult1)}>>{int(n1*frac1*mult1)} {creature}.\n{name4} slew {frac2} as many {creature} as {name3}, or {int(n1*frac1*mult1)}*{frac2}=<<{int(n1*frac1*mult1)}*{frac2}={int(n1*frac1*mult1*frac2)}>>{int(n1*frac1*mult1*frac2)} {creature}.\n#### {int(n1*frac1*mult1*frac2)}"
}