Advertisement
Saleh127

Untitled

Apr 6th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,c,d,e=0,f,i,j,k,l,t;
  6. cin>>t;
  7. while(t--)
  8. {
  9. cin>>a>>b>>c>>d;
  10. e+=abs(c-a+1)*abs(d-b+1);
  11. }
  12. cout<<e<<endl;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement