Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Thanks to @xnor for a some ingenious improvements!
(n#m)e|e>n*m*1e3=0|n>=m=((e|e>n*m*1e3=0|n<m=m#n$e|d<-n-m)#mm=(d#m)e+1|n<m=m#n$ee+1 n!m=n#m$n*m
Try it online!Try it online!
Thanks to @xnor for a some improvements!
(n#m)e|e>n*m*1e3=0|n>=m=((n-m)#m)e+1|n<m=m#n$e n!m=n#m$n*m
Try it online!
(n#m)e|e>n*m*1e3=0|n<m=m#n$e|d<-n-m=(d#m)e+1 n!m=n#m$n*m
Thanks to @xnor for a fewsome improvements!
Thanks to @xnor for a few improvements!
(n#m)e|e>n*m*1000=0|n>=m=e|e>n*m*1e3=0|n>=m=((n-m)#m)e+1|n<m=(m#n)ee+1|n<m=m#n$e n!m=(n#m)$n*mm=n#m$n*m
(n#m)e|e>n*m*1000=0|n>=m=((n-m)#m)e+1|n<m=(m#n)e n!m=(n#m)$n*m