Example #1
0
            public static SimpleSet operator *(SimpleSet a, SimpleSet b)
            {
                SimpleSet ans = new SimpleSet(Math.Min(a.MaxVal, b.MaxVal));

                for (int i = 1; i <= Math.Min(a.MaxVal, b.MaxVal); i++)
                {
                    if (a.CheckEl(i) && b.CheckEl(i))
                    {
                        ans.AddEl(i);
                    }
                }
                return(ans);
            }