Accepted
Code
def solve():
from math import gcd
t = int(input())
for i in range(t):
x , y = map(int,input().split())
print(f"Game #{i + 1}: {y//gcd(x,y)} / {x//gcd(x,y)}")
solve()
Information
- Submit By
- Type
- Submission
- Problem
- P1001 Achievement-Unlocked
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-02-17 13:48:11
- Judged At
- 2025-02-17 13:48:11
- Judged By
- Score
- 100
- Total Time
- 21ms
- Peak Memory
- 3.312 MiB