/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 16ms 3.117 MiB
#2 Accepted 16ms 3.109 MiB
#3 Accepted 16ms 2.887 MiB
#4 Accepted 16ms 2.902 MiB
#5 Accepted 15ms 2.887 MiB
#6 Accepted 16ms 3.055 MiB
#7 Accepted 16ms 2.988 MiB
#8 Accepted 16ms 3.129 MiB
#9 Accepted 16ms 3.008 MiB

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