Example #1
0
        public int C(ArraysTurple result)
        {
            var M1  = result.M1;
            var M2  = result.M2;
            int res = 0;

            for (int i = 0; i < M2.Length; i++)
            {
                res = M2[i] - 100;
            }

            var infoTask = new Info()
            {
                id = "C", time_end = "[TIME STOP]: " + DateTime.Now + ":" + DateTime.Now.Millisecond
            };

            TaskComplete?.Invoke(infoTask);
            return(res);
        }
Example #2
0
        public int B(ArraysTurple result)
        {
            var M1  = result.M1;
            var M2  = result.M2;
            int res = 0;

            for (int i = 0; i < n; i++)
            {
                for (int j = 0; j < n; j++)
                {
                    res = M1[i, j] + res;
                }
            }

            var infoTask = new Info()
            {
                id = "B", time_end = "[TIME STOP]: " + DateTime.Now + ":" + DateTime.Now.Millisecond
            };

            TaskComplete?.Invoke(infoTask);
            return(res);
        }