# using System using System Collections Generic using System Linq using

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85``` ```using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace FanKiLL.Arena.Calc { class CalcPoints { private double points; private double rating; private double points2x2; private double points3x3; public double Rating { get { return rating; } set { rating = value; } } public double Points { get { return points; } set { if (rating > 1500) { points = Convert.ToInt32(1511.26 / (1 + 1639.28 * (Math.Exp(-0.00412 * rating * Math.Log(2.71828))))); //формула подсчёта если рейтинг выше 1500 } else { points = Convert.ToInt32(0.22 * rating + 14); // формула подсчёта если рейтинг ниже 1500 или равен } } } public double Points2x2 { get { return points2x2; } set { points2x2 = value / 100 * 76; } } public double Points3x3 { get { return points3x3; } set { points3x3 = value / 100 * 88; } } public Boolean RegTest(String str) { return Regex.IsMatch(str, @"^\d+\$"); } public Boolean ChekMail(String str) { return Regex.IsMatch(str, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)\$"); } } } ```