(I2
I143
I4
(dp0
Vsquares.%l
p1
(Vsquares.cpp
p2
S'#include <iostream>\r\n#include <cmath>\r\nusing namespace std;\r\n\r\nstruct sqr {\r\n    std::pair<int, int> center;\r\n    std::pair<int, int> a, b;\r\n};\r\n\r\nbool selected[1000][1000];\r\n\r\nint main()\r\n{\r\n    int n;\r\n    cin >> n;\r\n    long long output = 0;\r\n    for(int i = 0;i < n;++ i)\r\n    {\r\n        int a, b, c, d;\r\n        cin >> a >> b >> c >> d;\r\n\r\n        int nc = (a - c) + a;\r\n        int nd = (b - d) + b;\r\n        int size = abs(c - nc);\r\n\r\n        /*std::cout << nc << " " << nd << endl; // 1\r\n        std::cout << c << " " << nd << endl; // 2\r\n        std::cout << c << " " << d << endl; // 3\r\n        std::cout << nc << " " << d << endl; // 4 */\r\n        //cout << c << " " << nc << " " << d << " " << nd << endl;\r\n\r\n        for(int x = min(nc, c);x < max(c, nc);++ x)\r\n        {\r\n            for(int y = min(d, nd);y < max(nd, d);y ++)\r\n            {\r\n                //cout << x << y << endl;\r\n                selected[x+50][y+50] = true;\r\n            }\r\n        }\r\n    }\r\n\r\n    long long res = 0;\r\n    for(int x = 0;x < 100;++ x)\r\n    {\r\n        for(int y = 0; y < 100; y ++)\r\n        {\r\n            if(selected[x][y] == true)\r\n            {\r\n                res ++;\r\n            }\r\n        }\r\n    }\r\n\r\n    cout << res << endl;\r\n    return 0;\r\n}\r\n'
p3
tp4
stp5
.