fork(2) download
  1. namespace System{using z=String;using w=Console;class P{static void Main(){var t=w.ReadLine().Split(' ');var s=int.Parse(t[0]);z b="17",d=b+23,e=b+3459,f="56",g=e+2680;Action<z,z,z,int>q=(l,m,r,n)=>{for(int i=1;i<n;i++){foreach(var c in t[1]){h(c,l);for(int j=0;j<s;j++)h(c,m,"_");h(c,r);}w.Write("\n");}};q(g,"14",g,2);q(d,g,f,s);q(d,b+0,f,2);q(e,g,"2",s);q(e,b+49,"2",2);}static void h(char x,z m,z y="|"){w.Write(m.Contains(""+x)?" ":y);}}}
Success #stdin #stdout 0.06s 34040KB
stdin
2 1234567890
stdout
     __  __      __  __  __  __  __  __ 
   |   |   ||  ||   |      ||  ||  ||  |
   | __| __||__||__ |__    ||__||__||  |
   ||      |   |   ||  |   ||  |   ||  |
   ||__  __|   | __||__|   ||__|   ||__|