/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.02 MiB
#2 Accepted 15ms 3.105 MiB
#3 Wrong Answer 14ms 2.887 MiB
#4 Wrong Answer 15ms 2.988 MiB

Code

t = int(input())
for i in range(1,t+1):
    a , u = map(int, input().split())
    if u == 0:
        print(f"Game #{i}: 0 / 1")
    
    else:
        for j in range(u,0,-1):
            if u%j == 0 and a%j == 0:
                y = a//j
                x = u//j
        print(f"Game #{i}: {x} / {y}")   


        

Information

Submit By
Type
Submission
Problem
P1001 Achievement-Unlocked
Language
Python 3 (Python 3.12.3)
Submit At
2024-01-06 10:38:58
Judged At
2024-11-11 03:43:50
Judged By
Score
0
Total Time
15ms
Peak Memory
3.105 MiB