Egyptian fraction by clock

#!ruby -lpaF/
a,b=$F.map &:to_i
b*=C while$_<<" + 1/#{C=0--b/a}"&&0<a=a*C-b
sub'+','='

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top