- 2
Solve the problem
Two pipes fill the pool in 𝑁 seconds. The first pipe fills the pool in 𝑀, 𝑀 > 𝑁 seconds. How many seconds does the second pipe fill the pool? Input data format In a single line there are two positive integers separated by a space: 𝑁 – the time of filling the pool with two pipes and 𝑀 - the time of filling the pool with the first pipe, 1 ⩽ 𝑁 < 𝑀 ⩽ 107. Output data format In a single line, the time of filling the pool with the second pipe is in the form of an irreducible fraction, that is, two positive integers separated by the symbol ”/" – the numerator and the denominator. If the answer is an integer, then give a fraction with a denominator equal to 1
1 ответ
+ 4
Sorry, nobody will just do your work for you. If you have a specific coding issue, post your attempt and we can help by giving pointers on how to fix