/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Wrong Answer 15ms 3.062 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'lcd' is not defined 14ms 3.066 MiB
#3 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'lcd' is not defined 14ms 3.066 MiB

Code

T=int(input())
if 1<=T<=10^4:
	import math
	N,M=map(int,input().split())
	gcd=math.gcd(N,M)
	lcd=(N*M)/gcd
		
print(lcd)
	

Information

Submit By
Type
Submission
Problem
P1011 LCD
Contest
Brain booster - 1
Language
Python 3 (Python 3.12.3)
Submit At
2023-12-31 16:51:59
Judged At
2024-10-03 14:04:33
Judged By
Score
0
Total Time
15ms
Peak Memory
3.066 MiB