Round (TechnicalResult, 2); = sr.ReadLine ();
while ((s1.IndexOf ("***") == -1) && (s1.IndexOf ("///") == -1) &&
(s1.IndexOf ("| | |") == -1) && (s1.IndexOf ("") == -1) && (s1! = "11"))
{= CalculationData (EstimatesComponents, Convert.ToDouble (s1)); = sr.ReadLine (); (s1 == null)
{= "11";
}
} = Math.Round (EstimatesComponents, 2); = TechnicalResult + EstimatesComponents; = Math.Round (FreeSkating, 2); [4]. Add (ShortProgram.ToString ()); [6] . Add (FreeSkating.ToString ()); Total = ShortProgram + FreeSkating; [7]. Add (Total.ToString ());
}
{((s1.IndexOf ("***") == -1) && (s1.IndexOf ("///") == -1) &&
(s1.IndexOf ("| | |") == -1) && (s1.IndexOf ("") == -1) && (s1! = "11"))
{= sr.ReadLine (); (s1 == null)
{= "11";
}
}
}
}
}. Close (); > point = Points (Data); = Ranks (point, Data); Data;
} double CalculationData (double Summ, double Assessment)
{Summ + Assessment;
} List > Points (List > Data)
{> point = new List > ();. Add (new List ());. Add (new List ; ());. Add (new List ()); (int i = 0; i
{[0]. Add (Convert.ToDouble (Data [4] [i])); [1]. Add (Convert.ToDouble (Data [6] [i]));
point [2]. Add (Convert.ToDouble (Data [7] [i]));
} point;
} List > Ranks (List > point, List > Data)
{> rank = new List > ();. Add (new List ());. Add (new List ; ());. Add (new List ());. Add (new List ()); [2]. Sort (); [2]. Reverse (); (int i = 0 ; i
{[0]. Add ((Search (point [2], Convert.ToDouble (Data [7] [i])) + 1). ToString ());
} [0]. Sort (); [0]. Reverse (); (int i = 0; i
{[3]. Add ((Search (point [0], Convert.ToDouble (Data [4] [i])) + 1). ToString ());
} [1]. Sort (); [1]. Reverse (); (int i = 0; i
{[5]. Add ((Search (point [1], Convert.ToDouble (Data [6] [i])) + 1). ToString ());
} Data;
} int Search (List mass, double element)
{(int i = 0; i
{(mass [i] == element)
{i;