def g(s,n,j=1): for W in s.split("\n"):exec"O=p='';d=0\nfor c in W:q=' _'[j*'_'in p+c];e=[n-j,j-1][c=='/'];O+=q*(e+d)+[c,q][c>'^'];p=c;d=n+~e\nprint O;j-=1;"*j;j=n s=""" __ /_/\\ \_\/""" t=""" __ /\_\\ \/_/""" u=""" ______ /_/_/\_\\ /_/\_\/\_\\ /\_\/_/\/_/\\ \/_/\_\/_/\/ \_\/_/\_\/ \_\_\/_/""" for x in s,t,u: for n in 1,2,3,4:g(x,n)
Standard input is empty
__ /_/\ \_\/ ____ / /\ /___/ \ \ \ / \___\/ ______ / /\ / / \ /_____/ \ \ \ / \ \ / \_____\/ ________ / /\ / / \ / / \ /_______/ \ \ \ / \ \ / \ \ / \_______\/ __ /\_\ \/_/ ____ /\ \ / \___\ \ / / \/___/ ______ /\ \ / \ \ / \_____\ \ / / \ / / \/_____/ ________ /\ \ / \ \ / \ \ / \_______\ \ / / \ / / \ / / \/_______/ ______ /_/_/\_\ /_/\_\/\_\ /\_\/_/\/_/\ \/_/\_\/_/\/ \_\/_/\_\/ \_\_\/_/ ____________ / / /\ \ /___/___/ \___\ / /\ \ /\ \ /___/ \___\/ \___\ /\ \ / /\ / /\ / \___\/___/ \/___/ \ \ / /\ \ / /\ / \/___/ \___\/___/ \/ \ \ / /\ \ / \___\/___/ \___\/ \ \ \ / / \___\___\/___/ __________________ / / /\ \ / / / \ \ /_____/_____/ \_____\ / /\ \ /\ \ / / \ \ / \ \ /_____/ \_____\/ \_____\ /\ \ / /\ / /\ / \ \ / / \ / / \ / \_____\/_____/ \/_____/ \ \ / /\ \ / /\ / \ / / \ \ / / \ / \/_____/ \_____\/_____/ \/ \ \ / /\ \ / \ \ / / \ \ / \_____\/_____/ \_____\/ \ \ \ / / \ \ \ / / \_____\_____\/_____/ ________________________ / / /\ \ / / / \ \ / / / \ \ /_______/_______/ \_______\ / /\ \ /\ \ / / \ \ / \ \ / / \ \ / \ \ /_______/ \_______\/ \_______\ /\ \ / /\ / /\ / \ \ / / \ / / \ / \ \ / / \ / / \ / \_______\/_______/ \/_______/ \ \ / /\ \ / /\ / \ / / \ \ / / \ / \ / / \ \ / / \ / \/_______/ \_______\/_______/ \/ \ \ / /\ \ / \ \ / / \ \ / \ \ / / \ \ / \_______\/_______/ \_______\/ \ \ \ / / \ \ \ / / \ \ \ / / \_______\_______\/_______/
Warning: cannot find your CPU L2 cache size in /proc/cpuinfo