예제 #1
0
        public static void solve2()
        {
            int N = 100;

            Console.WriteLine("Print two sets");
            SimpleSet a1 = new SimpleSet(N);
            SimpleSet b1 = new SimpleSet(N);
            Bitset    a2 = new Bitset(N);
            Bitset    b2 = new Bitset(N);
            string    st = Console.ReadLine();

            a1.Build(st);
            a2.Build(st);
            st = Console.ReadLine();
            b1.Build(st);
            b2.Build(st);
            var c1 = a1 + b1;

            c1.Print();
            var d1 = a1 * b1;

            d1.Print();
            var c2 = a2 + b2;

            c2.Print();
            var d2 = a2 * b2;

            d2.Print();
        }