Double Parity Vertical Redundancy Check by Hex

using B=System.Console;using C=System.Convert;class A{static void Main(){for(string s=B.ReadLine();s!=null;s=B.ReadLine()){s=C.ToInt32(s,2)==26?C.ToString(90,2):C.ToInt32(s,2)==199?C.ToString(207,2):C.ToInt32(s,2)==118?C.ToString(119,2):s;B.WriteLine(s.PadLeft(8,'0'));}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page