We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c7db6 commit a2b4da7Copy full SHA for a2b4da7
kattis/Forest for the trees/forest.vn.py
@@ -17,7 +17,7 @@
17
18
# Iterating on integer intersections
19
# y = (yb/xb)x (Simplified by gcd) =>
20
-# y = (yb'/xb')x => x = k*xb' => y = k*yb'
+# y = (x/xb')yb' => y = k*yb' && x = k*xb', k in |N
21
# y<yb => k*yb'<gcd*yb' => k<gcd
22
k = 1
23
while k<GCD:
0 commit comments