Skip to content

Commit a2b4da7

Browse files
committed
Updated explanation
1 parent 04c7db6 commit a2b4da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Iterating on integer intersections
1919
# y = (yb/xb)x (Simplified by gcd) =>
20-
# y = (yb'/xb')x => x = k*xb' => y = k*yb'
20+
# y = (x/xb')yb' => y = k*yb' && x = k*xb', k in |N
2121
# y<yb => k*yb'<gcd*yb' => k<gcd
2222
k = 1
2323
while k<GCD:

0 commit comments

Comments
 (0)