示例#1
0
 public override void CreateAnswers(System.IO.StreamReader reader)
 {
     while (!reader.EndOfStream)
     {
         RKSumAnswer ans = new RKSumAnswer()
         {
             a = Array.ConvertAll(reader.ReadLine().Split(' '), sTemp => Convert.ToInt64(sTemp))
         };
         Answers.Add(ans);
     }
 }
示例#2
0
        public override Boolean Equals(Object obj)
        {
            RKSumAnswer Answer = obj as RKSumAnswer;

            if (Answer?.a?.Length != a?.Length)
            {
                return(false);
            }

            for (int i = 0; i < Answer.a.Length; i++)
            {
                if (Answer.a[i] != a[i])
                {
                    return(false);
                }
            }
            return(true);
        }