_,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).
download
return to the top page