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 class of 50 students has various hobbies. 10 like to bake, 5 like to play basketball, and the rest like to either play video games or play music. How many like to play video games if the number that like to play music is twice the number that prefer playing basketball?",
|
|
"answer": "The number of students that like to play music is twice as many as the number who like basketball, so 2 * 5 = <<2*5=10>>10\nThe number that like to play video games is 50 total students - 10 baking - 5 basketball - 10 music = <<50-10-5-10=25>>25\n#### 25",
|
|
"id_orig": 740,
|
|
"id_shuffled": 3,
|
|
"question_annotated": "A {g,class} of {n, 50} students has various hobbies. {n_1, 10} like to {h_1, bake}, 8 like to play chess, 13 like to swim, {n_2,5} like to play {h_2,basketball}, and the rest like to either {h_3,play video games} or {h_4,play music}. What percentage of the students like to {h_3,play video games} if the number of the students that like to {h_4,play music} is {less,0} less than {factor,twice} the number that prefer playing {h_2, basketball}?\n\n#init:\n- g = sample([\"group\", \"class\"])\n- h_2 = sample(sports)\n- h_1, h_3, h_4 = sample(['read', 'paint', 'hike', 'dance', 'bake', 'play video games', 'play music'], 3)\n- $n = range(50, 300, 10)\n- $n_1 = range(2, 70)\n- $n_2 = range(2, 70)\n- $factor = sample(multiple_ice+multi_times)\n- $less = range(2, 8)\n\n#conditions:\n- n_1 + n_2 + 21 < n\n- factor*n_2-less > 0\n- n-n_1-n_2-21-(factor*n_2-less) > 0\n- n - (n_1 + n_2) -21- (factor * n_2 - less) > 0\n- is_int((int(n - (n_1 + n_2+21) - (factor * n_2 - less))) / n * 100)\n\n#answer: int((int(n - (n_1 + n_2+21) - (factor * n_2 - less))) / n * 100)",
|
|
"answer_annotated": "The number of students that like to {h_4} is {less} less than {factor} times as many as the number who like {h_2}, so {factor} * {n_2} - {less} = <<{factor}*{n_2}-{less}={factor*n_2-less}>>{factor*n_2-less}\nThe number that like to {h_3} is {n} total students - {n_1} {h_1} - {n_2} {h_2} - {factor*n_2-less} {h_4} - 13 swim - 8 chess = <<{n}-{n_1}-{n_2}-{factor*n_2-less}-13-8={n-n_1-n_2-(factor*n_2-less)-21}>>{n-n_1-n_2-(factor*n_2-less)-21}.\nTo calculate the percentage, we divide this number of by {n} and multiply by 100: {n-n_1-n_2-21-(factor*n_2-less)} / {n} = {int(n-n_1-n_2-21-(factor*n_2-less))/n} * 100 = {int((n-n_1-n_2-21-(factor*n_2-less))/n*100)}%\n#### {int((n-n_1-n_2-21-(factor*n_2-less))/n*100)}"
|
|
} |