Achievement-Unlocked
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 |
---|---|
|
|
|
|
Information
- ID
- 1001
- Difficulty
- 6
- Category
- Math | Basic_Math Click to Show
- Tags
- (None)
- # Submissions
- 69
- Accepted
- 21
- Accepted Ratio
- 30%
- Uploaded By
Related
In following contests: