{"problem":{"name":"018. Machines","description":{"content":"In mechanical engineering, the primary tool used to measure the energy amplified into a simple machine or a compound machine is called a concept known as the Mechanical Advantage, which signifies the ","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269018"},"statements":[{"statement_type":"Markdown","content":"In mechanical engineering, the primary tool used to measure the energy amplified into a simple machine or a compound machine is called a concept known as the Mechanical Advantage, which signifies the ratio of the energy put into a machine, and the amount of force it outputs.\n\nIn one type of simple machine, the lever, mechanical advantage will be calculated by the lengths of the two sides, with the position of the fulcrum determining the length of the two sides. A diagram and a simplified formula of this process has been given below:\n\nYour objective is to find the mechanical advantage of a lever, given side A and side B. The first positive integer n is the amount of inputs that will follow.\n\n## Input\n\nYour objective is to find the mechanical advantage of a lever, given side A and side B. The first positive integer n is the amount of inputs that will follow.\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of test cases.  \nFor each test case $ i \\in \\{1, \\dots, n\\} $, let $ A_i, B_i \\in \\mathbb{R}^+ $ denote the lengths of the two sides of the lever.\n\n**Constraints**  \n1. $ n \\geq 1 $  \n2. $ A_i > 0 $, $ B_i > 0 $ for all $ i \\in \\{1, \\dots, n\\} $\n\n**Objective**  \nFor each test case $ i $, compute the mechanical advantage $ MA_i $:  \n$$\nMA_i = \\frac{A_i}{B_i}\n$$","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269018","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}