Skip to content

Commit 29a1256

Browse files
committed
Updated
1 parent a011602 commit 29a1256

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kattis/Forest for the trees/forest.shortest.vn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from math import gcd;a,b=map(int,input().split());c=gcd(a,b);a//=c;b//=c;d,e,f,j=map(int,input().split())
2-
d,f=sorted([d,f])
3-
e,j=sorted([e,j])
2+
d,f=[d,f].sort()
3+
e,j=[e,j].sort()
44
k=1
55
while k<c:
66
x=k*a;y=k*b;k+=1

0 commit comments

Comments
 (0)