Accepted
Code
import math
def main():
g = int(input())
for i in range(g):
x, y = map(int, input().split())
gcd = math.gcd(x, y)
print(f'Game #{i + 1}: {y // gcd} / {x // gcd}')
if __name__ == '__main__':
main()
Information
- Submit By
- Type
- Submission
- Problem
- P1001 Achievement-Unlocked
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-11-02 03:38:07
- Judged At
- 2024-11-11 02:34:16
- Judged By
- Score
- 100
- Total Time
- 16ms
- Peak Memory
- 3.129 MiB