{"problem":{"name":"112. Unit Conversions","description":{"content":"Converting from one unit of measurement to another is very useful. Make a program that can convert between, feet, inches, meters, centimeters, miles, and kilometers. Use the following conversions to g","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269112"},"statements":[{"statement_type":"Markdown","content":"Converting from one unit of measurement to another is very useful. Make a program that can convert between, feet, inches, meters, centimeters, miles, and kilometers. Use the following conversions to get the correct answer: .08333 feet in 1 inch, 3.28084 feet in 1 meter, 0.0328084 feet in one centimeter, 5280 feet in 1 mile, and 3280.84 feet in 1 kilometer. \n\nOne line describing a conversion: Ex: \"The road is 1.5 miles, how many kilometers is it.\"\n\nPrint the value of the conversion and the unit.\n\nThe first number and unit will always be right before the \",\". after the \",\" it will always \"how many\" then the unit you are converting to.\n\n## Input\n\nOne line describing a conversion: Ex: \"The road is 1.5 miles, how many kilometers is it.\"\n\n## Output\n\nPrint the value of the conversion and the unit.\n\n[samples]\n\n## Note\n\nThe first number and unit will always be right before the \",\". after the \",\" it will always \"how many\" then the unit you are converting to.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ U = \\{ \\text{inch}, \\text{foot}, \\text{meter}, \\text{centimeter}, \\text{mile}, \\text{kilometer} \\} $ be the set of units.  \nDefine the conversion factor to feet:  \n- $ c_{\\text{inch}} = 0.08333 $  \n- $ c_{\\text{foot}} = 1 $  \n- $ c_{\\text{meter}} = 3.28084 $  \n- $ c_{\\text{centimeter}} = 0.0328084 $  \n- $ c_{\\text{mile}} = 5280 $  \n- $ c_{\\text{kilometer}} = 3280.84 $  \n\n**Given**  \nA string of the form:  \n> \"The road is $ v $ $ u_1 $, how many $ u_2 $ is it.\"  \n\nwhere:  \n- $ v \\in \\mathbb{R}^+ $ is the numerical value,  \n- $ u_1, u_2 \\in U $, $ u_1 \\ne u_2 $, are the source and target units.  \n\n**Objective**  \nCompute the converted value:  \n$$\nv' = v \\cdot \\frac{c_{u_1}}{c_{u_2}}\n$$  \nOutput: $ v' $ and $ u_2 $.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269112","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}