#include<iostream>
using namespace std;
int n;
const int N=110;
bool g[N][N];
int main(){
cin>>n;
while(n--){
int x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
for(int i=x1;i<x2;i++){
for(int j=y1;j<y2;j++){
g[i][j]=true;
}
}
}
int res=0;
for(int i=0;i<N;i++){
for(int j=0;j<N;j++){
if(g[i][j])res++;
}
}
cout<<res;
return 0;
}
07-14
11-07
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交