Achievement-Unlocked

Achievement-Unlocked

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Time Limit: 1.0 s

Memory Limit: 64.0 MB

Description

In video gaming parlance, an achievement, also sometimes known as a trophy, badge, award, stamp, medal, challenge, cheevo or in game achievement, is a meta-goal defined outside a game's parameters. Unlike the in-game systems of quests, tasks, and/or levels that usually define the goals of a video game and have a direct effect on further gameplay, the management of achievements usually takes place outside the confines of the game environment and architecture. Meeting the fulfillment conditions, and receiving recognition of fulfillment by the game, is referred to as unlocking the achievement.

Makorsha-Manov is an avid gamer. He loves collecting games and playing them. And most importantly, he loves unlocking achievements.

Recently he started a youtube channel to stream live plays. For his youtube channel, he decided to create a banner detailing his video game achievements.

Help him by calculating the percentage of achievement he unlocked for a given game.

Print the percentage as Irreducible Fraction. Eg: x / y, where x and y can not be reduced further.

Input format:
Input starts with a number G, the number of games.
For each game, there will be two numbers, A, number of achievement available in each game, U number of achievement unlocked by Makorsha-Manov.

Constraints:

1 <= G <= 100, where G = number of game.

1 <= A <= \(10^{18}\)

0 <= U <= A.

Output format:

Game #C: x / y, where C = game number.

Sample

Input Output
3
4 3
1 1
4 1
Game #1: 3 / 4
Game #2: 1 / 1
Game #3: 1 / 4
3
5 1
2 0
1 0
Game #1: 1 / 5
Game #2: 0 / 1
Game #3: 0 / 1

Beta Round #1

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-11-29 16:00
End at
2023-11-29 18:00
Duration
2.0 hour(s)
Host
Partic.
23