문제2647--Drinks

### 2647: Drinks

실행시간 제한: 5 Sec  메모리사용 제한: 512 MB
제출: 25  통과: 7
[제출] [채점기록] [묻고답하기]

#### 문제 설명

Every weekend, dreamoon and drazil play in the park, and for each time, one of them has to
buys drinks for both. They agree to apply the following procedure to determine who is on the
duty of buying drinks.

1. Put n red balls and m white balls in a paper bag.
2. dreamoon and drazil draw a ball from the bag in turns. Note that once a ball is drawn,
it is removed from the bag.
3. The person who draws a red ball first has to buy drinks.

drazil lets dreamoon perform the first draw every week for dreamoon is older than him. One
day, dreamoon suddenly wonders what is the probability that he draws a red ball first. Can
you help him to calculate it? You may assume when every ball has the same probability to be
drawn.

#### 입력 설명

The first line contains a positive integer $T$, $T \leq 1770$, indicating the number of test cases. Each
test case has one line contains two positive integers $n$ and $m$ where $1 \leq n \leq 59$, $1 \leq m \leq 59$
and $n + m \leq 60$. $n$ is the number of red balls, and $m$ is the number of white balls.

#### 출력 설명

For each test case, output one line containing the answer represented by a reduced fraction.

#### 입력 예시 Copy

2
1 1
1 2

#### 출력 예시 Copy

1/2
2/3