Академический Документы
Профессиональный Документы
Культура Документы
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <unordered_map>
#include <list>
#include <bitset>
#include <utility>
#include <cassert>
#include <iomanip>
#include <ctime>
#include <fstream>
void brute(){
int N, R;
map<pair<int, int>, int> m;
cin >> N >> R;
for(int i = 0; i < N; i ++){
int x[2], y[2];
cin >> x[0] >> y[0];
cin >> x[1] >> y[1];
for(int i = x[0]; i < x[1]; i ++)
for(int j = y[0]; j < y[1]; j ++)
m[make_pair(i, j)] ++;
}
cout << (int)m.size() << endl;
}
struct node{
long long sum;
int lazy;
node *lower_left;
node *lower_right;
node *upper_left;
node *upper_right;
node(){
}
};
typedef node* pnode;
int N, R;
int x[2], y[2];
pnode root = NULL;
return 0;
}