using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace LD_24.Code { public class Point { public int X { get; set; } public int Y { get; set; } public Point(int x, int y) { X = x; Y = y; } public override bool Equals(object obj) { return obj is Point point && X == point.X && Y == point.Y; } public override int GetHashCode() { int hashCode = 1861411795; hashCode = hashCode * -1521134295 + X.GetHashCode(); hashCode = hashCode * -1521134295 + Y.GetHashCode(); return hashCode; } } }