(I2
I123
I4
(dp0
Vsquares.%l
p1
(V4.cpp
p2
S"#include <bits/stdc++.h>\r\n#define endl '\\n'\r\n\r\n#define int long long\r\n\r\nusing namespace std;\r\nconst int MAXN = 2 * (42);\r\n\r\nstruct point\r\n{\r\n    int x, y;\r\n    point() {x = -1; y = -1;}\r\n    point(int _x, int _y)\r\n    {\r\n        x = _x;\r\n        y = _y;\r\n    }\r\n};\r\n\r\nstruct square\r\n{\r\n    point a, b, c, d;\r\n    square() {a = point(); b = point(); c = point(); d = point();}\r\n    square(point center, point helper)\r\n    {\r\n        a = helper;\r\n        int delta_x = center.x - a.x, delta_y = center.y - a.y;\r\n        c = point(center.x + delta_x, center.y + delta_y);\r\n        d = point(center.x + delta_x, center.y - delta_y);\r\n        b = point(center.x - delta_x, center.y + delta_y);\r\n    }\r\n};\r\n\r\nint n;\r\nsquare a[MAXN];\r\n\r\nvoid read()\r\n{\r\n    cin >> n;\r\n\r\n    for(int i = 0; i < n; i++)\r\n    {\r\n        int x, y, cx, cy;\r\n        cin >> x >> y >> cx >> cy;\r\n        a[i] = square(point(x, y), point(cx, cy));\r\n    }\r\n}\r\n\r\nint dist(point a, point b)\r\n{\r\n    return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);\r\n}\r\n\r\nvoid solve()\r\n{\r\n    int ans = 0;\r\n    for(int i = 0; i < n; i++)\r\n        ans += dist(a[i].a, a[i].b);\r\n\r\n    cout << ans << endl;\r\n}\r\n\r\n#undef int\r\nint main()\r\n{\r\n    ios_base::sync_with_stdio(false);\r\n    cin.tie(NULL);\r\n\r\n    read();\r\n    solve();\r\n    return 0;\r\n}\r\n\r\n/*\r\n11\r\n6 5 2 7 8 6 8 3 5 6 7\r\n*/\r\n"
p3
tp4
stp5
.