Achievement-Unlocked

Achievement-Unlocked

সময় লিমিট: 1.0 s

মেমরি লিমিট: 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

Information

ID
1001
Difficulty
7
Category
Math | Basic_Math দেখানোর জন্য ক্লিক করুন
Tags
(None)
# Submissions
55
Accepted
9
Accepted Ratio
16%
Uploaded By

Related

In following contests:

Beta Round #1