Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- vector<array<int, 4>> va(n);
- for(auto &[a, b, c, d]: va)
- cin>>a>>b>>c>>d;
- int ans = 0;
- for(int i=0; i<=100; i++)
- {
- for(int j=0; j<=100; j++)
- {
- int f = 0;
- for(auto [a, b, c, d]: va)
- f |= (a<=i && b>i && c<=j && d>j);
- ans += f;
- }
- }
- cout<<ans<<"\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement