using System;
using System.Drawing;
using System.Collections.Generic;
public class Test
{
public static void Main() {
Point[] arr = { new Point(10, 20), new Point(20, 40), new Point(40, 80) };
arr[1].X = 30;
foreach (var pt in arr) {
Console.WriteLine(pt);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uRHJhd2luZzsKdXNpbmcgU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWM7CiAKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKSB7CiAgICAgICAgUG9pbnRbXSBhcnIgPSB7IG5ldyBQb2ludCgxMCwgMjApLCBuZXcgUG9pbnQoMjAsIDQwKSwgbmV3IFBvaW50KDQwLCA4MCkgfTsKCiAgICAgICAgYXJyWzFdLlggPSAzMDsKCiAgICAgICAgZm9yZWFjaCAodmFyIHB0IGluIGFycikgewoJCQlDb25zb2xlLldyaXRlTGluZShwdCk7CgkJfQogCgl9Cn0=