Пример #1
0
        public TAnswer Solution2(TSample Sample)
        {
            AbbreviateSample sample = Sample as AbbreviateSample;

            return(new AbbreviateAnswer()
            {
                Answer = abbreviation2(sample.A, sample.B)
            });
        }
Пример #2
0
        public override void CreateSamples(StreamReader reader)
        {
            int q = Convert.ToInt32(reader.ReadLine());

            for (int qItr = 0; qItr < q; qItr++)
            {
                string           a      = reader.ReadLine();
                string           b      = reader.ReadLine();
                AbbreviateSample sample = new AbbreviateSample()
                {
                    A = a, B = b
                };
                Samples.Add(sample);
            }
        }