/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 11, in <module> File "foo.py", line 5, in main TypeError: 'str' object cannot be interpreted as an integer 16ms 3.082 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 11, in <module> File "foo.py", line 5, in main TypeError: 'str' object cannot be interpreted as an integer 16ms 2.969 MiB

Code

import math

def main():
	g = 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:36:31
Judged At
2024-11-11 02:34:16
Judged By
Score
0
Total Time
16ms
Peak Memory
3.082 MiB