/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Wrong Answer 14ms 3.105 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 8, in <module> NameError: name 'lcd' is not defined 14ms 2.988 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-11-11 03:45:00
Judged By
Score
0
Total Time
14ms
Peak Memory
3.105 MiB