Skip to content

Commit

Permalink
这题在PythonTip中提交时把print的括号去掉即可通过(这题貌似python3的语法过不了)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuglessCoder authored Nov 25, 2016
1 parent 963794f commit 1f13ad9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 逆解最大公约数与最小公倍数.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
a = 3
b = 60
for i in range(a,b):
for j in range(a,b):
x = i
y = j
if(y<x):
t = y
y = x
x = t
m = y%x
while(m!=0):
y = x
x = m;
m = y%x;
if x == a and i*j/x == b:
if i<j:
print(i,j)

0 comments on commit 1f13ad9

Please sign in to comment.