-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
这题在PythonTip中提交时把print的括号去掉即可通过(这题貌似python3的语法过不了)
- Loading branch information
1 parent
963794f
commit 1f13ad9
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |