Missing Pieces by angel_p_57

#!ruby -na
x,y=$F.map &:to_i
p 0.step.find{|i|(2..(s=x+y+i)/2).any?{|z|s%z<1&&x<=(t=z+s/z-2<<1)&&y<=s-t}}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page