Semana i 2018 |
---|
Finished |
Everybody knows the typical A+B problem, this one is much harder, instead of A+B it's going to be A+B+C, but with fractions.
An integer T (1<=T<=$$$10{^3}$$$), the number of test cases T lines follow, each with 3 fraction numbers, each in the form $$$\frac{n}{d}$$$ (1<=n,d<=$$$10{^6}$$$)
One line per test case, a single simplified fraction in the format $$$\frac{num}{den}$$$
2
1/2 1/3 1/4
3/2 1/2 2/2
13/12
3/1
Name |
---|