A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Least-common-multiple/K/least-common-multiple.k
Normal file
8
Task/Least-common-multiple/K/least-common-multiple.k
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
gcd:{:[~x;y;_f[y;x!y]]}
|
||||
lcm:{_abs _ x*y%gcd[x;y]}
|
||||
|
||||
lcm .'(12 18; -6 14; 35 0)
|
||||
36 42 0
|
||||
|
||||
lcm/1+!20
|
||||
232792560
|
||||
Loading…
Add table
Add a link
Reference in a new issue