Skip to content

Commit d52b811

Browse files
committed
更新错误
1 parent bc55ff9 commit d52b811

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

int_divide.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
def int_divided(m,r,out_list):
1818
if(r==0):
1919
return True
20-
m1=r
21-
while m1>0:
22-
if(m1<=m):
23-
out.append(m1)
24-
if(divide(m1,r-m1,out)):
20+
tm=r
21+
while tm>0:
22+
if(tm<=m):
23+
out.append(tm)
24+
if(divide(tm,r-tm,out_list)):
2525
print out
2626
out.pop()
27-
m1-=1
27+
tm = tm-1
2828
return False
2929

3030

0 commit comments

Comments
 (0)