예제 #1
0
        public static int Resistente()
        {
            string linesens         = MetodiBioinf.ReadRes();
            int    lengthresistente = linesens.Length;

            return(lengthresistente);
        }
예제 #2
0
        public static string Uguale()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();
            long   p    = MetodiBioinf.Diverso();
            string u    = "";

            for (int i = 0; i < p; i++)
            {
                u += sens[i];
            }
            return(u);
        }
예제 #3
0
        public static int Diverso()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();

            for (int i = 0; i < Math.Min(sens.Length, res.Length); i++)
            {
                if (sens[i] != res[i])
                {
                    return(i);
                }
            }
            return(-1);
        }
예제 #4
0
        public static int Stringhe()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();
            int    d    = 0;

            for (int i = 0; i < Math.Min(sens.Length, res.Length); i++)
            {
                if (sens[i] != res[i])
                {
                    d++;
                }
            }
            return(d);
        }