// A21.cs using System; using System.Collections; public class A21 { private static string B = "01"; public static void Main(string[] args) { ArrayList Given = init(); ArrayList Computed = Compute(Given); Output(Computed); Output(Computed); } public static ArrayList init() { ArrayList Given = new ArrayList(); Given.Add("01010101"); Given.Add("11011001"); Given.Add("10001000"); Given.Add("00010011"); return Given; } public static ArrayList Compute(ArrayList Given) { ArrayList Computed = new ArrayList(); int N = Given.Count; for(int i=0; i