visual Euclidean algorithm by xnor

_,j=t=input()
while j:a,b=t;j-=1;s="";c=96;exec"c+=j<b;q=a>=b;a-=b*q;s+=chr(c)*b*q;b-=a-a*q;"*a;print s

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