#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int i;
int map[100][100] = { 0 };
for (i = 0; i < n; i++){
int a[4];
cin >> a[0] >> a[1] >> a[2] >> a[3];
for (int j = a[0]; j < a[2];j++)
for (int p = a[1] ; p <a[3]; p++)
map[j][p] = 1;
}
int count = 0;
for (i = 0; i < 100; i++){
for (int j = 0; j < 100;j++)
if (map[i][j] == 1)
count++;
}
cout << count;
}
CCF201403-02
最新推荐文章于 2023-11-07 23:09:27 发布