jzy_2020011 @ 2021-08-16 20:25:22
#include <algorithm>
#include <iostream>
using namespace std;
int a[1000][1000];
int xxx(int x1,int y1,int x2,int y2)
{
for (int i=x1;i<=x2;i++)
{
for (int j=y1;j<=y2;j++)
{
a[i][j]++;
}
}
}
int main()
{
int n,m;
cin>>n>>m;
int x1,x2,y1,y2;
for (int i=1;i<=m;i++)
{
cin>>x1>>y1>>x2>>y2;
xxx(x1,y1,x2,y2);
}
for (int i=1;i<=n;i++)
{
for (int j=1;j<=n;j++)
{
cout<<a[i][j]<<" ";
}
cout<<endl;
}
return 0;
}
by HL_Lee4974 @ 2021-10-09 16:07:41
开[1002][1002] 以上