{"problem":{"name":"065. Intersection of Two Lines","description":{"content":"When performing calculations on linear equations, finding the intersection point of two lines is a very common task. Write a program that takes two linear equations in the form of $y = m x + b$ and ou","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269065"},"statements":[{"statement_type":"Markdown","content":"When performing calculations on linear equations, finding the intersection point of two lines is a very common task. Write a program that takes two linear equations in the form of $y = m x + b$ and outputs the $x$ coordinate at which the two lines intersect.\n\nThe first line contains two floating point values representing the $m$ and $b$ values of the first linear equation respectively. The second line contains the two variables corresponding to the $m$ and $b$ variables of the second linear equation.\n\nA single floating point value that represents the $x$ coordinate at which the two lines intersect.\n\nAssume that all test cases contain lines that do intersect.\n\n## Input\n\nThe first line contains two floating point values representing the $m$ and $b$ values of the first linear equation respectively. The second line contains the two variables corresponding to the $m$ and $b$ variables of the second linear equation.\n\n## Output\n\nA single floating point value that represents the $x$ coordinate at which the two lines intersect.\n\n[samples]\n\n## Note\n\nAssume that all test cases contain lines that do intersect.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ m_1, b_1 \\in \\mathbb{R} $ be the slope and y-intercept of the first line.  \nLet $ m_2, b_2 \\in \\mathbb{R} $ be the slope and y-intercept of the second line.  \n\n**Constraints**  \n1. $ m_1 \\neq m_2 $ (lines intersect at exactly one point).  \n\n**Objective**  \nFind the $ x $-coordinate of the intersection point:  \n$$\nx = \\frac{b_2 - b_1}{m_1 - m_2}\n$$","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269065","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}