main=interact$f;f(_:'B':_)="AAB\nBAAB\nA";f _="A\nAA\nB\nB\nBB\nA"
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page