Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Highschool Mathematics

By mashfiqur404 · Limits 500ms, 64 MB

We do Algebra, Geometry, Matrix, Trigonometry, Calculus, Vector, Permutation - Combination, Probability, Function, Graph and many more maths in our college life. Our life sucks with these maths. Now we feel math as a freaky subject. Let’s go hiking on the world of highschool maths. Where there was no fear for maths. There was just love.

Suppose x is the summation of two numbers and their ratio is m:n. So what are those numbers?

Input

You’ll be given three int type numbers x, m and n in one line separated with spaces.

Output

Calculate those two numbers and print them out separating with space in one line.

Sample

InputOutput
360 4 5
160 200

Problemsetter: Mashfiqur R. Khan (mashfiqur404)

Discussion

Statistics


73% Solution Ratio

theunownEarliest, 3M ago

theunownFastest, 0.0s

theunownLightest, 0 B

mdvirusShortest, 57B

Submit

Login to submit

Related Contests

ATOEB: কোডshock_ 2019 Ended at 2019-12-19 11:30:00 +0000 UTC