fork download
  1. using System;namespace G{using z=String;class P{static void Main(){var s=int.Parse(Console.ReadLine());var u=Console.ReadLine();var q= new Action<z,z,z,int>((l,m,r,n)=>{for(int i=1;i<n;i++){foreach(var c in u){h(""+c,l);h(""+c,m,"_",s);h(""+c,r);}Console.Write("\n");}});q("","14","",2);q("1237","","56",s);q("1237","170","56",2);q("134579","","2",s);q("134579","147","2",2);Console.ReadKey();}static void h(z x,z m,z y="|",int n=1){for(int i=0;i<n;i++)Console.Write(m.Contains(x)||m==""?" ":y);}}}
Runtime error #stdin #stdout #stderr 0.03s 36816KB
stdin
3 01234
stdout
Standard output is empty
stderr
Unhandled Exception: System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at G.P.Main () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at G.P.Main () [0x00000] in <filename unknown>:0